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

java.lang.Object
  extended by de.unihalle.informatik.Alida.dataio.provider.xmlbeans.ALDStandardizedDataIOXmlbeans
      extended by de.unihalle.informatik.Alida.dataio.provider.xmlbeans.ALDWorkflowDataIOXmlbeans
All Implemented Interfaces:
ALDDataIO, ALDDataIOXmlbeans

@ALDDataIOProvider(priority=2)
public class ALDWorkflowDataIOXmlbeans
extends ALDStandardizedDataIOXmlbeans

DataIO provider for ALDWorkflow from xml using xmlbeans.

Author:
posch

Field Summary
private  boolean debug
          debug messages
 
Constructor Summary
ALDWorkflowDataIOXmlbeans()
           
 
Method Summary
 java.util.Collection<java.lang.Class<?>> providedClasses()
          Interface method to announce class for which IO is provided for
 java.lang.Object readData(java.lang.reflect.Field field, java.lang.Class<?> cl, de.unihalle.informatik.Alida_xml.ALDXMLObjectType xmlObject, java.lang.Object obj)
          Returns an object instantiated from xmlObject.
 de.unihalle.informatik.Alida_xml.ALDXMLObjectType writeData(java.lang.Object obj)
          Interface for writing the object data to the target location.
 
Methods inherited from class de.unihalle.informatik.Alida.dataio.provider.xmlbeans.ALDStandardizedDataIOXmlbeans
readData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

debug

private boolean debug
debug messages

Constructor Detail

ALDWorkflowDataIOXmlbeans

public ALDWorkflowDataIOXmlbeans()
Method Detail

providedClasses

public java.util.Collection<java.lang.Class<?>> providedClasses()
Interface method to announce class for which IO is provided for

Returns:
Collection of classes provided

readData

public java.lang.Object readData(java.lang.reflect.Field field,
                                 java.lang.Class<?> cl,
                                 de.unihalle.informatik.Alida_xml.ALDXMLObjectType xmlObject,
                                 java.lang.Object obj)
                          throws ALDDataIOProviderException,
                                 ALDDataIOManagerException
Description copied from class: ALDStandardizedDataIOXmlbeans
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.

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

writeData

public de.unihalle.informatik.Alida_xml.ALDXMLObjectType writeData(java.lang.Object obj)
                                                            throws ALDDataIOProviderException,
                                                                   ALDDataIOManagerException
Description copied from interface: ALDDataIOXmlbeans
Interface for writing the object data to the target location. This interface work in conjunction with ALDDataIOManagerXmlbeans where the method is documented in more detail.

Parameters:
obj - Object to be saved.
Returns:
obj as an ALDXMLObjectType
Throws:
ALDDataIOProviderException
ALDDataIOManagerException