@ALDDataIOProvider public class ALDNativeDataIOXmlbeans extends ALDStandardizedDataIOXmlbeans
ALDStandardizedDataIOXmlbeans
it
implements the Alida syntax conventions.Modifier and Type | Field and Description |
---|---|
private boolean |
debug |
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.
|
readData, readData, readData
public Collection<Class<?>> providedClasses()
ALDDataIO
public 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 cl
passed 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 ALDStandardizedDataIOXmlbeans
field
- Field of object to be returnedcl
- Class of object to be returned.aldXmlObject
- Source from where to read data.obj
- if non null the xml representation is to be parse in this instance. Otherwise a new instance is created.xmlObject
ALDDataIOProviderException
ALDDataIOManagerXmlbeans
public de.unihalle.informatik.Alida_xml.ALDXMLObjectType writeData(Object obj) throws ALDDataIOProviderException, ALDDataIOManagerException
ALDDataIOXmlbeans
ALDDataIOManagerXmlbeans
where the method is documented in more detail.obj
- Object to be saved.obj
ALDDataIOProviderException
ALDDataIOManagerException
Copyright © 2010–2021 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.