de.unihalle.informatik.Alida.dataconverter
Class ALDVectorNativeArrayConverter

java.lang.Object
  extended by de.unihalle.informatik.Alida.operator.ALDOperator
      extended by de.unihalle.informatik.Alida.dataconverter.ALDVectorNativeArrayConverter
All Implemented Interfaces:
ALDDataConverter, ALDConfigurationValidator

@ALDDataConverterProvider
public class ALDVectorNativeArrayConverter
extends ALDOperator
implements ALDDataConverter

Converts 1D arrays of native data types to Vector data types.

Author:
moeller

Nested Class Summary
 
Nested classes/interfaces inherited from class de.unihalle.informatik.Alida.operator.ALDOperator
ALDOperator.HidingMode
 
Field Summary
 
Fields inherited from class de.unihalle.informatik.Alida.operator.ALDOperator
completeDAG, name, portHashAccess, verbose, versionProvider
 
Fields inherited from interface de.unihalle.informatik.Alida.dataconverter.ALDDataConverter
providesMethodName
 
Constructor Summary
ALDVectorNativeArrayConverter()
          Default constructor.
 
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.
protected  void operate()
          This method does the actual work and needs to be implemented by every subclass.
 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.
 
Methods inherited from class de.unihalle.informatik.Alida.operator.ALDOperator
deserializeFromXmlFile, fieldContained, getALDPortHashAccessKey, getConstructionMode, getInInoutNames, getInInoutNames, getInNames, getInOutNames, getMissingRequiredInputs, getName, getNumParameters, getOutInoutNames, getOutNames, getParameter, getParameterDescriptor, getParameterNames, getSupplementalNames, getVerbose, getVersion, isConfigured, parametersToXmlObject, print, print, print, printInterface, printInterface, readHistory, readResolve, reinitializeParameterDescriptors, runOp, runOp, runOp, serializeToXmlFile, setConstructionMode, setName, setParameter, setParametersFromXml, setParametersFromXml, setVerbose, toStringVerbose, unconfiguredItems, validate, validateCustom, validateGeneric, writeHistory, writeHistory, writeHistory, writeParametersToXml
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ALDVectorNativeArrayConverter

public ALDVectorNativeArrayConverter()
                              throws ALDOperatorException
Default constructor.

Throws:
ALDOperatorException
Method Detail

providedClasses

public java.util.Collection<ALDDataConverterManager.ALDSourceTargetClassPair> providedClasses()
Description copied from interface: ALDDataConverter
Announce all classes pairs which the converter can handle.

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

Specified by:
providedClasses in interface ALDDataConverter
Returns:
Collection of classes provided

supportConversion

public boolean supportConversion(java.lang.Class<?> sourceClass,
                                 java.lang.reflect.Type[] sourceTypes,
                                 java.lang.Class<?> targetClass,
                                 java.lang.reflect.Type[] targetTypes)
Description copied from interface: ALDDataConverter
Does the converter support this kind of conversion. For not parameterized types type type arrays are ignored, of course.

Specified by:
supportConversion in interface ALDDataConverter
Returns:

convert

public java.lang.Object convert(java.lang.Object sourceObject,
                                java.lang.reflect.Type[] sourceTypes,
                                java.lang.Class<?> targetClass,
                                java.lang.reflect.Type[] targetTypes)
                         throws ALDDataConverterException
Description copied from interface: ALDDataConverter
Convert the sourceObject into an object of class targetClass.

Specified by:
convert in interface ALDDataConverter
Returns:
converted object
Throws:
ALDDataConverterException

operate

protected void operate()
Description copied from class: ALDOperator
This method does the actual work and needs to be implemented by every subclass.

Specified by:
operate in class ALDOperator


Copyright © 2010-2014 Martin Luther University Halle-Wittenberg. All Rights Reserved.