@ALDDataIOProvider public class ALDNativeDataIOXmlbeans extends ALDStandardizedDataIOXmlbeans
ALDStandardizedDataIOXmlbeans it
implements the Alida syntax conventions.| Constructor and Description |
|---|
ALDNativeDataIOXmlbeans() |
| Modifier and Type | Method and Description |
|---|---|
Collection<Class<?>> |
providedClasses()
Interface method to announce all classes handled by this provider.
|
Object |
readData(Field field,
Class<?> cl,
de.unihalle.informatik.Alida_xml.ALDXMLObjectType aldXmlObject,
Object obj)
Method to parse native data from a string.
|
de.unihalle.informatik.Alida_xml.ALDXMLObjectType |
writeData(Object obj)
Interface for writing the object data to the target location.
|
readDatapublic Collection<Class<?>> providedClasses()
ALDDataIOpublic Object readData(Field field, Class<?> cl, de.unihalle.informatik.Alida_xml.ALDXMLObjectType aldXmlObject, Object obj) throws ALDDataIOProviderException
Note that the field argument is ignored here.
The clpassed to the method should contain the
class which is to be returned. If it is null, null is
returned. Likewise if something else goes wrong, the return value is null.
Note that 1D arrays have to be encoded in one of the following ways, i.e. with or without enclosing brackets:
2D arrays have to be encoded as follows:
readData in class ALDStandardizedDataIOXmlbeansfield - Field of object to be returnedcl - Class of object to be returned.aldXmlObject - Source from where to read data.obj - Object instantiated from xmlObject with the default constructorxmlObjectALDDataIOProviderExceptionALDDataIOManagerXmlbeanspublic de.unihalle.informatik.Alida_xml.ALDXMLObjectType writeData(Object obj) throws ALDDataIOProviderException, ALDDataIOManagerException
ALDDataIOXmlbeansALDDataIOManagerXmlbeans
where the method is documented in more detail.obj - Object to be saved.objALDDataIOProviderExceptionALDDataIOManagerExceptionCopyright © 2010–2015 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.