|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ALDDataConverter
Super class for all data converter providers in Alida.
A provider is required to convert objects of any type announced by sourceClasses
to an object of any type announced by targetClasses
.
Field Summary | |
---|---|
static java.lang.String |
providesMethodName
Name of the method which returns all source classes supported. |
Method Summary | |
---|---|
java.lang.Object |
convert(java.lang.Object sourceObject,
java.lang.reflect.Type[] sourceTypes,
java.lang.Class<?> targetClass,
java.lang.reflect.Type[] targetTypes)
Convert the sourceObject into an object of class
targetClass . |
java.util.Collection<ALDDataConverterManager.ALDSourceTargetClassPair> |
providedClasses()
Announce all classes pairs which the converter can handle. |
boolean |
supportConversion(java.lang.Class<?> sourceClass,
java.lang.reflect.Type[] sourceTypes,
java.lang.Class<?> targetClass,
java.lang.reflect.Type[] targetTypes)
Does the converter support this kind of conversion. |
Field Detail |
---|
static final java.lang.String providesMethodName
Method Detail |
---|
java.util.Collection<ALDDataConverterManager.ALDSourceTargetClassPair> providedClasses()
Note: for parameterized types there is only indicates that the converter can in principle handle conversion for these classes but depending und the type parameters still may refuse to convert
boolean supportConversion(java.lang.Class<?> sourceClass, java.lang.reflect.Type[] sourceTypes, java.lang.Class<?> targetClass, java.lang.reflect.Type[] targetTypes)
sourceClass
- sourceTypes
- targetClass
- targetTypes
-
java.lang.Object convert(java.lang.Object sourceObject, java.lang.reflect.Type[] sourceTypes, java.lang.Class<?> targetClass, java.lang.reflect.Type[] targetTypes) throws ALDDataConverterException
sourceObject
into an object of class
targetClass
.
sourceObject
- targetClass
-
ALDDataConverterException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |