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

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

@ALDDataIOProvider
public class ALDFileDirectoryDataIOCmdline
extends java.lang.Object
implements ALDDataIOCmdline

DataIO provider for filenames and directory paths from command line.

Author:
moeller

Constructor Summary
ALDFileDirectoryDataIOCmdline()
           
 
Method Summary
 java.util.Collection<java.lang.Class<?>> providedClasses()
          Interface method to announce all classes handled by this provider.
 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 locationString)
          Interface for writing the object data to the target location.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ALDFileDirectoryDataIOCmdline

public ALDFileDirectoryDataIOCmdline()
Method Detail

providedClasses

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

Specified by:
providedClasses in interface ALDDataIO
Returns:
Collection of classes provided

readData

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

Specified by:
readData in interface ALDDataIOCmdline
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

public java.lang.String writeData(java.lang.Object obj,
                                  java.lang.String locationString)
Description copied from interface: ALDDataIOCmdline
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.

Specified by:
writeData in interface ALDDataIOCmdline
Parameters:
obj - Object to be saved.
locationString - String indicated whether to return the value of where to write the value to.
Returns:
String formated from obj
See Also:
ALDDataIOManagerCmdline