|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.unihalle.informatik.Alida.dataconverter.ALDDataConverterManager
public class ALDDataConverterManager
This class implements a provider manager for data conversion.
For data input, it essentially looks up the correct provider for GUI-based execution using the method of its super class and invokes its method.
It does its work in collaboration with
ALDDataConverter
.
Nested Class Summary | |
---|---|
static class |
ALDDataConverterManager.ALDSourceTargetClassPair
A pair of source and target pair (of a converter) |
Field Summary | |
---|---|
protected HashMap<String,Collection<String>> |
mapTable
Hashtable containing mappings of class pairs to a collection of provider class names. |
Method Summary | |
---|---|
Object |
convert(ALDDataConverter provider,
Object sourceObject,
Field sourceField,
Class<?> targetClass,
Field targetField)
Convert the sourceObject into an object of class
targetClass . |
Object |
convert(Object sourceObject,
Class<?> targetClass)
Convert the sourceObject into an object of class
targetClass . |
Object |
convert(Object sourceObject,
Field sourceField,
Class<?> targetClass,
Field targetField)
|
Object |
convert(Object sourceObject,
Type[] sourceTypes,
Class<?> targetClass,
Type[] targetTypes)
Convert the sourceObject into an object of class
targetClass . |
static ALDDataConverterManager |
getInstance()
Return the single instance of this class |
ALDDataConverter |
getProvider(Class<?> sourceClass,
Field sourceField,
Class<?> targetClass,
Field targetField)
|
ALDDataConverter |
getProvider(Class<?> sourceClass,
Type[] sourceTypes,
Class<?> targetClass,
Type[] targetTypes)
Method to return an instance of the data converter provider for given classes. |
protected static HashMap<String,Collection<String>> |
initMapTable()
Method to initialize the hashmap which registers data conversion providers. |
static void |
printMap(HashMap<String,Collection<String>> mapTable)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected HashMap<String,Collection<String>> mapTable
Method Detail |
---|
public static ALDDataConverterManager getInstance()
public Object convert(Object sourceObject, Type[] sourceTypes, Class<?> targetClass, Type[] targetTypes) throws ALDDataConverterException, ALDDataConverterManagerException
sourceObject
into an object of class
targetClass
.
sourceObject
- sourceTypes
- targetClass
- targetTypes
-
ALDDataConverterException
ALDDataConverterManagerException
public Object convert(ALDDataConverter provider, Object sourceObject, Field sourceField, Class<?> targetClass, Field targetField) throws ALDDataConverterManagerException, ALDDataConverterException
sourceObject
into an object of class
targetClass
.
sourceObject
- sourceTypes
- targetClass
- targetTypes
-
ALDDataConverterManagerException
ALDDataConverterException
public Object convert(Object sourceObject, Field sourceField, Class<?> targetClass, Field targetField) throws ALDDataConverterManagerException, ALDDataConverterException
ALDDataConverterManagerException
ALDDataConverterException
public Object convert(Object sourceObject, Class<?> targetClass) throws ALDDataConverterManagerException, ALDDataConverterException
sourceObject
into an object of class
targetClass
.
sourceObject
- targetClass
-
ALDDataConverterManagerException
ALDDataConverterException
public ALDDataConverter getProvider(Class<?> sourceClass, Type[] sourceTypes, Class<?> targetClass, Type[] targetTypes) throws ALDDataConverterManagerException
sourceClass
- targetClass
-
ALDDataConverterManagerException
ALDDataIOManagerException
public ALDDataConverter getProvider(Class<?> sourceClass, Field sourceField, Class<?> targetClass, Field targetField) throws ALDDataConverterManagerException
ALDDataConverterManagerException
protected static HashMap<String,Collection<String>> initMapTable()
ALDDataConverterManagerException
public static void printMap(HashMap<String,Collection<String>> mapTable)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |