@ALDDataIOProvider public class ALDCollectionDataIOCmdline extends ALDStandardizedDataIOCmdline
ALDStandardizedDataIOCmdline
it
implements the Alida syntax conventions.Modifier and Type | Field and Description |
---|---|
private boolean |
debug
output debugging info?
|
DERIVEDCLASS_CHAR, FILEIO_CHAR
Constructor and Description |
---|
ALDCollectionDataIOCmdline() |
Modifier and Type | Method and Description |
---|---|
String |
formatAsString(Object obj)
Returns the string representations of collection.
|
Object |
parse(Field field,
Class<?> cl,
String valueString)
Returns a collection instantiated from
valueString . |
Collection<Class<?>> |
providedClasses()
Interface method to announce all classes handled by this provider.
|
formatAsString, readData, requiresNewlines, writeData
public Collection<Class<?>> providedClasses()
ALDDataIO
public Object parse(Field field, Class<?> cl, String valueString) throws ALDDataIOProviderException, ALDDataIOManagerException
valueString
.
valueString
is assume to contain a comma separated list of nested valueString
for each element of the collection enclosed in matching square brackets,
e.g. [1.2 , 2.2 , 3.1]
.
The class of the elements of the collection is determined
using ALDCollectionDataIOHelper.lookupType(java.lang.reflect.Field)
.parse
in class ALDStandardizedDataIOCmdline
field
- Field of object to be returnedcl
- Class of object to be returned.valueString
- Source from where to read data (e.g. a filename).ALDDataIOProviderException
ALDDataIOManagerException
ALDDataIOManagerCmdline
public String formatAsString(Object obj) throws ALDDataIOManagerException, ALDDataIOProviderException
formatAsString
in class ALDStandardizedDataIOCmdline
obj
- object to formatALDDataIOManagerException
ALDDataIOProviderException
parse(Field,Class,String)
Copyright © 2010–2021 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.