|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.unihalle.informatik.Alida.dataio.provider.xmlbeans.ALDStandardizedDataIOXmlbeans
de.unihalle.informatik.Alida.dataio.provider.xmlbeans.ALDNativeDataIOXmlbeans
@ALDDataIOProvider public class ALDNativeDataIOXmlbeans
DataIO provider for primitive datatypes, Java wrapper types, and arrays (1D and 2D) xml using xmlbeans.
As this provider extends ALDStandardizedDataIOXmlbeans
it
implements the Alida syntax conventions.
Constructor Summary | |
---|---|
ALDNativeDataIOXmlbeans()
|
Method Summary | |
---|---|
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. |
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 |
Constructor Detail |
---|
public ALDNativeDataIOXmlbeans()
Method Detail |
---|
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
- Object instantiated from xmlObject
with the default constructor
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.
ALDDataIOProviderException
ALDDataIOManagerException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |