de.unihalle.informatik.Alida.dataio.provider.cmdline
Class ALDEnumDataIOCmdline
java.lang.Object
de.unihalle.informatik.Alida.dataio.provider.cmdline.ALDStandardizedDataIOCmdline
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
Method Summary |
String |
formatAsString(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. |
Object |
parse(Field field,
Class<?> cl,
String valueString)
Returns an object instantiated from valueString. |
Collection<Class<?>> |
providedClasses()
Interface method to announce all classes handled by this provider. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ALDEnumDataIOCmdline
public ALDEnumDataIOCmdline()
providedClasses
public Collection<Class<?>> providedClasses()
- Description copied from interface:
ALDDataIO
- Interface method to announce all classes handled by this provider.
- Returns:
- Collection of classes provided
parse
public Object parse(Field field,
Class<?> cl,
String valueString)
throws ALDDataIOProviderException
- 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 returnedcl
- Class of object to be returned.valueString
- Source from where to read data (e.g. a filename).
- Returns:
- Object read from valueString
- Throws:
ALDDataIOProviderException
- See Also:
ALDDataIOManagerCmdline
formatAsString
public String formatAsString(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
Copyright © 2010–2014 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.