@ALDDataIOProvider public class ALDParametrizedClassDataIOXmlbeans extends ALDStandardizedDataIOXmlbeans
ALDStandardizedDataIOXmlbeans it
implements the Alida syntax conventions.
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. Either all OUT and INPUT parameters are written/formated or a subset as specified by a format string.
| 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 xmlObject,
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 xmlObject, 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.
The readData method of the provider for the class of the member variable
is used to read the objects value from value.
readData in class ALDStandardizedDataIOXmlbeansfield - cl - valueString - obj - if a ALDOperator is to be parse this may an instance of this class,
otherwise a new instance is created.
Ignored when parsing a parametrized classALDDataIOProviderExceptionALDDataIOManagerExceptionALDDataIOManagerXmlbeanspublic de.unihalle.informatik.Alida_xml.ALDXMLObjectType writeData(Object obj) throws ALDDataIOProviderException, ALDDataIOManagerException
For parametrized classes annotated members are written.
For operators all OUT and INOUT parameters are written.
obj - Object to be saved.ALDDataIOProviderExceptionALDDataIOManagerExceptionpublic 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. All rights reserved.