|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.unihalle.informatik.Alida.dataio.provider.cmdline.ALDStandardizedDataIOCmdline
de.unihalle.informatik.Alida.dataio.provider.cmdline.ALDNativeDataIOCmdline
@ALDDataIOProvider public class ALDNativeDataIOCmdline
DataIO provider for primitive datatypes, Java wrapper types, and arrays (1D and 2D) from comamand line.
As this provider extends ALDStandardizedDataIOCmdline
it
implements the Alida syntax conventions.
Field Summary |
---|
Fields inherited from class de.unihalle.informatik.Alida.dataio.provider.cmdline.ALDStandardizedDataIOCmdline |
---|
DERIVEDCLASS_CHAR, FILEIO_CHAR |
Constructor Summary | |
---|---|
ALDNativeDataIOCmdline()
|
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)
Method to parse native data from a string. |
Collection<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, readData, writeData |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ALDNativeDataIOCmdline()
Method Detail |
---|
public Collection<Class<?>> providedClasses()
ALDDataIO
public Object parse(Field field, Class<?> cl, String valueString) throws ALDDataIOProviderException
Note that the field
argument is ignored here.
The cl
passed to the method should contain the
class which is to be returned. If it is null, null is
returned. Likewise if something else goes wrong, the return value is null.
Note that 1D arrays have to be encoded in one of the following ways, i.e. with or without enclosing brackets:
2D arrays have to be encoded as follows:
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
ALDDataIOManagerCmdline
public String formatAsString(Object obj)
ALDStandardizedDataIOCmdline
obj
into the string return and make no
prior interpretation regarding a file to be used.
formatAsString
in class ALDStandardizedDataIOCmdline
obj
- object to format
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |