public interface ALDDataConverter
sourceClasses
to an object of any type announced by targetClasses
.Modifier and Type | Field and Description |
---|---|
static String |
providesMethodName
Name of the method which returns all source classes supported.
|
Modifier and Type | Method and Description |
---|---|
Object |
convert(Object sourceObject,
Type[] sourceTypes,
Class<?> targetClass,
Type[] targetTypes)
Convert the
sourceObject into an object of class
targetClass . |
Collection<ALDDataConverterManager.ALDSourceTargetClassPair> |
providedClasses()
Announce all classes pairs which the converter can handle.
|
boolean |
supportConversion(Class<?> sourceClass,
Type[] sourceTypes,
Class<?> targetClass,
Type[] targetTypes)
Does the converter support this kind of conversion.
|
static final String providesMethodName
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(Class<?> sourceClass, Type[] sourceTypes, Class<?> targetClass, Type[] targetTypes)
sourceClass
- sourceTypes
- targetClass
- targetTypes
- Object convert(Object sourceObject, Type[] sourceTypes, Class<?> targetClass, Type[] targetTypes) throws ALDDataConverterException
sourceObject
into an object of class
targetClass
.sourceObject
- targetClass
- ALDDataConverterException
Copyright © 2010–2021 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.