de.unihalle.informatik.Alida.dataio.provider.cmdline
Class ALDEnumDataIOCmdline

java.lang.Object
  extended by de.unihalle.informatik.Alida.dataio.provider.cmdline.ALDStandardizedDataIOCmdline
      extended by de.unihalle.informatik.Alida.dataio.provider.cmdline.ALDEnumDataIOCmdline
All Implemented Interfaces:
ALDDataIO, ALDDataIOCmdline

@ALDDataIOProvider
public class ALDEnumDataIOCmdline
extends ALDStandardizedDataIOCmdline

DataIO provider for enumerations from command line. As this provider extends ALDStandardizedDataIOCmdline it implements the Alida syntax conventions.

Author:
posch

Field Summary
 
Fields inherited from class de.unihalle.informatik.Alida.dataio.provider.cmdline.ALDStandardizedDataIOCmdline
DERIVEDCLASS_CHAR, FILEIO_CHAR
 
Constructor Summary
ALDEnumDataIOCmdline()
           
 
Method Summary
 java.lang.String formatAsString(java.lang.Object obj)
          Returns the string representations of this object This method is assumed to directly format the obj into the string return and make no prior interpretation regarding a file to be used.
 java.lang.Object parse(java.lang.reflect.Field field, java.lang.Class<?> cl, java.lang.String valueString)
          Returns an object instantiated from valueString.
 java.util.Collection<java.lang.Class<?>> providedClasses()
          Interface method to announce all classes handled by this provider.
 
Methods inherited from class de.unihalle.informatik.Alida.dataio.provider.cmdline.ALDStandardizedDataIOCmdline
formatAsString, getValueStringFromFile, readData, writeData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ALDEnumDataIOCmdline

public ALDEnumDataIOCmdline()
Method Detail

formatAsString

public java.lang.String formatAsString(java.lang.Object obj)
Description copied from class: ALDStandardizedDataIOCmdline
Returns the string representations of this object This method is assumed to directly format the obj into the string return and make no prior interpretation regarding a file to be used.

Specified by:
formatAsString in class ALDStandardizedDataIOCmdline
Parameters:
obj - object to format
Returns:
string representations of the object

parse

public java.lang.Object parse(java.lang.reflect.Field field,
                              java.lang.Class<?> cl,
                              java.lang.String valueString)
Description copied from class: ALDStandardizedDataIOCmdline
Returns an object instantiated from valueString. For the class of the object to be read see ALDDataIOManagerCmdline.readData(Field,Class,String). This method is assumed to directly parse the valueString and make no prior interpretation regarding a file to use or derived class to return.

Specified by:
parse in class ALDStandardizedDataIOCmdline
Parameters:
field - Field of object to be returned
cl - Class of object to be returned.
valueString - Source from where to read data (e.g. a filename).
Returns:
Object read from valueString
See Also:
ALDDataIOManagerCmdline

providedClasses

public java.util.Collection<java.lang.Class<?>> providedClasses()
Description copied from interface: ALDDataIO
Interface method to announce all classes handled by this provider.

Returns:
Collection of classes provided