de.unihalle.informatik.Alida.dataio.provider.cmdline
Interface ALDDataIOCmdline

All Superinterfaces:
ALDDataIO
All Known Implementing Classes:
ALDCollectionDataIOCmdline, ALDEnumDataIOCmdline, ALDNativeDataIOCmdline, ALDOperatorDataIOCmdline, ALDParametrizedClassDataIOCmdline, ALDStandardizedDataIOCmdline

public interface ALDDataIOCmdline
extends ALDDataIO

This is the interface for Alida's dataIO provider from command line. All classes providing dataIO for command line have to implement this interface and need to be annotated with ALDDataIOProvider.

Author:
moeller

Method Summary
 java.lang.Object readData(java.lang.reflect.Field field, java.lang.Class<?> cl, java.lang.String valueString)
          Interface for reading data from the given source.
 java.lang.String writeData(java.lang.Object obj, java.lang.String locatationString)
          Interface for writing the object data to the target location.
 
Methods inherited from interface de.unihalle.informatik.Alida.dataio.provider.ALDDataIO
providedClasses
 

Method Detail

readData

java.lang.Object readData(java.lang.reflect.Field field,
                          java.lang.Class<?> cl,
                          java.lang.String valueString)
Interface for reading data from the given source. This interface work in conjuction with ALDDataIOManagerCmdline where the method is documented in more detail.

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 source.

writeData

java.lang.String writeData(java.lang.Object obj,
                           java.lang.String locatationString)
Interface for writing the object data to the target location. This interface work in conjuction with ALDDataIOManagerCmdline where the method is documented in more detail.

Parameters:
obj - Object to be saved.
locatationString - String indicated whether to return the value of where to write the value to.
Returns:
String formated from obj
See Also:
ALDDataIOManagerCmdline