de.unihalle.informatik.Alida.dataio.provider.xmlbeans
Class ALDStandardizedDataIOXmlbeans

java.lang.Object
  extended by de.unihalle.informatik.Alida.dataio.provider.xmlbeans.ALDStandardizedDataIOXmlbeans
All Implemented Interfaces:
ALDDataIO, ALDDataIOXmlbeans
Direct Known Subclasses:
ALDCollectionDataIOXmlbeans, ALDEnumDataIOXmlbeans, ALDNativeDataIOXmlbeans, ALDParametrizedClassDataIOXmlbeans, ALDWorkflowDataIOXmlbeans

public abstract class ALDStandardizedDataIOXmlbeans
extends Object
implements ALDDataIOXmlbeans

Abstract class providing basic methods for xml DataIO using xmlbeans according to Alida conventions.

These conventions are detailed in the documentation if the methods readData and writeData in this class below. They handle IO from/to file and reading derived classes of the class handled by an dataIO provider.

Classes extending this class are expected to override the methods eadData which do the actual reading subsequent to generic handling of Alida convention with respect to derived classes and IO form/to file.

Author:
posch

Constructor Summary
ALDStandardizedDataIOXmlbeans()
           
 
Method Summary
 Object readData(Field field, Class<?> cl, de.unihalle.informatik.Alida_xml.ALDXMLObjectType xmlObject)
          Read an object using valueString.
abstract  Object readData(Field field, Class<?> cl, de.unihalle.informatik.Alida_xml.ALDXMLObjectType xmlObject, Object object)
          Returns an object instantiated from xmlObject.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.unihalle.informatik.Alida.dataio.provider.ALDDataIOXmlbeans
writeData
 
Methods inherited from interface de.unihalle.informatik.Alida.dataio.provider.ALDDataIO
providedClasses
 

Constructor Detail

ALDStandardizedDataIOXmlbeans

public ALDStandardizedDataIOXmlbeans()
Method Detail

readData

public abstract Object readData(Field field,
                                Class<?> cl,
                                de.unihalle.informatik.Alida_xml.ALDXMLObjectType xmlObject,
                                Object object)
                         throws ALDDataIOProviderException,
                                ALDDataIOManagerException
Returns an object instantiated from xmlObject. For the class of the object to be read see ALDDataIOManagerXmlbeans.readData(Field,Class,ALDXMLObjectType). This method is assumed to directly parse the xmlObject and make no prior interpretation regarding a file to use or derived class to return.

Parameters:
field - Field of object to be returned
cl - Class of object to be returned.
xmlObject - Source from where to read data.
object - Object instantiated from xmlObject with the default constructor
Returns:
Object with member fields set from xmlObject
Throws:
ALDDataIOProviderException
ALDDataIOManagerException
See Also:
ALDDataIOManagerXmlbeans

readData

public Object readData(Field field,
                       Class<?> cl,
                       de.unihalle.informatik.Alida_xml.ALDXMLObjectType xmlObject)
                throws ALDDataIOProviderException,
                       ALDDataIOManagerException
Read an object using valueString. For the class of the object to be read see ALDDataIOXmlbeans.

Specified by:
readData in interface ALDDataIOXmlbeans
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.
Throws:
ALDDataIOProviderException
ALDDataIOManagerException


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