@ALDDataConverterProvider public class ALDNumberConverter extends ALDOperator implements ALDDataConverter
ALDOperator.ConstructioMode, ALDOperator.HidingModecompleteDAG, name, operatorExecutionEventlistenerList, portHashAccess, verbose, versionProviderprovidesMethodName| Constructor and Description |
|---|
ALDNumberConverter()
Default constructor.
|
| 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. |
protected void |
operate()
This method does the actual work and needs to be implemented by every
subclass.
|
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.
|
addOperatorExecutionProgressEventListener, addParameter, addParameter, addParameterUnconditioned, fieldContained, fireOperatorExecutionProgressEvent, getALDPortHashAccessKey, getConstructionMode, getHidingMode, getInInoutNames, getInInoutNames, getInNames, getInOutNames, getMissingRequiredInputs, getName, getNumParameters, getOutInoutNames, getOutNames, getParameter, getParameterDescriptor, getParameterNames, getSupplementalNames, getVerbose, getVersion, handleOperatorExecutionProgressEvent, hasInOutParameters, hasParameter, isAnnotatedParameter, isConfigured, print, print, print, printInterface, printInterface, readHistory, readResolve, reinitializeParameterDescriptors, removeOperatorExecutionProgressEventListener, removeParameter, runOp, runOp, runOp, setConstructionMode, setConstructionMode, setConstructionMode, setHidingMode, setName, setParameter, setVerbose, toStringVerbose, unconfiguredItems, validate, validateCustom, validateGeneric, writeHistory, writeHistory, writeHistorypublic ALDNumberConverter()
throws ALDOperatorException
ALDOperatorExceptionpublic Collection<ALDDataConverterManager.ALDSourceTargetClassPair> providedClasses()
ALDDataConverterNote: 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
providedClasses in interface ALDDataConverterpublic boolean supportConversion(Class<?> sourceClass, Type[] sourceTypes, Class<?> targetClass, Type[] targetTypes)
ALDDataConvertersupportConversion in interface ALDDataConverterpublic Object convert(Object sourceObject, Type[] sourceTypes, Class<?> targetClass, Type[] targetTypes) throws ALDDataConverterException
ALDDataConvertersourceObject into an object of class
targetClass.convert in interface ALDDataConverterALDDataConverterExceptionprotected void operate()
throws ALDOperatorException
ALDOperatoroperate in class ALDOperatorALDOperatorExceptionCopyright © 2010–2015 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.