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 Object
implements ALDDataIOCmdline

DataIO provider for filenames and directory paths from command line.

Author:
moeller

Constructor Summary
ALDFileDirectoryDataIOCmdline()
           
 
Method Summary
 Collection<Class<?>> providedClasses()
          Interface method to announce all classes handled by this provider.
 Object readData(Field field, Class<?> cl, String valueString)
          Interface for reading data from the given source.
 String writeData(Object obj, 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 Collection<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 Object readData(Field field,
                       Class<?> cl,
                       String valueString)
Description copied from interface: ALDDataIOCmdline
Interface for reading data from the given source. This interface work in conjunction 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 String writeData(Object obj,
                        String locationString)
Description copied from interface: ALDDataIOCmdline
Interface for writing the object data to the target location. This interface work in conjunction 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


Copyright © 2010–2014 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.