public abstract class ALDStandardizedDataIOXmlbeans extends Object implements ALDDataIOXmlbeans
Modifier and Type | Field and Description |
---|---|
private boolean |
debug
debugging output
|
Constructor and Description |
---|
ALDStandardizedDataIOXmlbeans() |
Modifier and Type | Method and Description |
---|---|
private boolean |
compatible(Class cl1,
Class cl2)
Checks compatibility of wrapper and primitive classes.
|
Object |
readData(Field field,
Class<?> cl,
de.unihalle.informatik.Alida_xml.ALDXMLObjectType aldXmlObject)
Try to read an object from
aldXmlObject with the class stored in the
xml representation using readData(Field,Class,ALDXMLObjectType,Object) from aldXmlObject . |
abstract Object |
readData(Field field,
Class<?> cl,
de.unihalle.informatik.Alida_xml.ALDXMLObjectType aldXmlObject,
Object object)
Returns an object instantiated from
aldXmlObject . |
Object |
readData(Field field,
Class<?> cl,
File file,
Object object)
Returns an object instantiated from an
ALDXMLObjectType read from file . |
Object |
readData(Field field,
Class<?> cl,
String filename,
Object object)
Returns an object instantiated from an
ALDXMLObjectType read from a file with name filename . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
writeData
providedClasses
public abstract Object readData(Field field, Class<?> cl, de.unihalle.informatik.Alida_xml.ALDXMLObjectType aldXmlObject, Object object) throws ALDDataIOProviderException, ALDDataIOManagerException
aldXmlObject
.
For the class of the object to be read see ALDDataIOManagerXmlbeans.readData(Field,Class,ALDXMLObjectType)
.
This method is assumed to directly parse the aldXmlObject
and make no
prior interpretation regarding a file to use or derived class to return.field
- Field of object to be returnedcl
- Class of object to be returned.aldXmlObject
- Source from where to read data.object
- if non null the xml representation is to be parse in this instance. Otherwise a new instance is created.xmlObject
ALDDataIOProviderException
ALDDataIOManagerException
ALDDataIOManagerXmlbeans
public Object readData(Field field, Class<?> cl, String filename, Object object) throws ALDDataIOProviderException, ALDDataIOManagerException, org.apache.xmlbeans.XmlException
ALDXMLObjectType
read from a file with name filename
.
See readData(Field, Class, ALDXMLObjectType, Object)
for detailsfield
- cl
- filename
- object
- ALDDataIOProviderException
ALDDataIOManagerException
org.apache.xmlbeans.XmlException
public Object readData(Field field, Class<?> cl, File file, Object object) throws ALDDataIOProviderException, org.apache.xmlbeans.XmlException, ALDDataIOManagerException
ALDXMLObjectType
read from file
.
See readData(Field, Class, ALDXMLObjectType, Object)
for detailsfield
- cl
- file
- object
- ALDDataIOProviderException
org.apache.xmlbeans.XmlException
ALDDataIOManagerException
public Object readData(Field field, Class<?> cl, de.unihalle.informatik.Alida_xml.ALDXMLObjectType aldXmlObject) throws ALDDataIOProviderException, ALDDataIOManagerException
aldXmlObject
with the class stored in the
xml representation using readData(Field,Class,ALDXMLObjectType,Object)
from aldXmlObject
.
If this fails try to read an object of class cl
or the class retrieved from
field
if this is non null from aldXmlObject
again using readData(Field,Class,ALDXMLObjectType,Object)
.
readData
in interface ALDDataIOXmlbeans
field
- Field of object to be returned.cl
- Class of object to be returned.aldXmlObject
- Source from where to read data.ALDDataIOProviderException
ALDDataIOManagerException
Copyright © 2010–2021 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.