@ALDDataIOProvider public class ALDParametrizedClassDataIOXmlbeans extends ALDStandardizedDataIOXmlbeans
For parametrized classes reading is done only for parameters annotated
with ALDClassParameter.
Either all annotated parameters are written/formated or a
subset as specified by a format string.
For operators reading is done only for IN and INOUT parameters. In addition the set of active parameters and descriptors is set as represented in the xml representation.
| Constructor and Description |
|---|
ALDParametrizedClassDataIOXmlbeans() |
| Modifier and Type | Method and Description |
|---|---|
static LinkedList<String> |
lookupParameternames(ALDOperator op,
String pre)
Lookup all parameter names of the operator with prefix
pre. |
Collection<Class<?>> |
providedClasses()
Interface method to announce class for which IO is provided for
|
Object |
readData(Field field,
Class<?> cl,
de.unihalle.informatik.Alida_xml.ALDXMLObjectType aldXmlObject,
Object obj)
Xmlbeans provider for parametrized classes and ALDOperators.
|
de.unihalle.informatik.Alida_xml.ALDXMLObjectType |
writeData(Object obj)
Transient members are not written.
|
readDatapublic Collection<Class<?>> providedClasses()
public Object readData(Field field, Class<?> cl, de.unihalle.informatik.Alida_xml.ALDXMLObjectType aldXmlObject, Object obj) throws ALDDataIOProviderException, ALDDataIOManagerException
For parametrized classes each name has to be an annotated parameter.
For operators each name has to be an IN or INOUT parameter name of the operator and receives its value from
the valueString. Additionally the set of active parameters and descriptors is set.
readData in class ALDStandardizedDataIOXmlbeansfield - cl - obj - if non null the xml representation is to be parse in this instance.
otherwise a new instance is created.aldXmlObject - Source from where to read data.ALDDataIOProviderExceptionALDDataIOManagerExceptionALDDataIOManagerXmlbeanspublic de.unihalle.informatik.Alida_xml.ALDXMLObjectType writeData(Object obj) throws ALDDataIOProviderException, ALDDataIOManagerException
For parametrized classes annotated members are written.
For operators all IN and INOUT parameters are written. In addition for all parameters the names written and the corresponding parameter descriptors for not annotated parameters
obj - Object to be saved.objALDDataIOProviderExceptionALDDataIOManagerExceptionpublic static LinkedList<String> lookupParameternames(ALDOperator op, String pre)
pre.
If one of the parameters exactly matches pre only this single
parameter name is returned.pre or the single parameter
exactly matching preCopyright © 2010–2015 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.