|
||||||||||
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.ALDParametrizedClassDataIOXmlbeans
@ALDDataIOProvider public class ALDParametrizedClassDataIOXmlbeans
DataIO provider for parametrized classes and operators from command line.
As this provider extends 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 Summary | |
---|---|
ALDParametrizedClassDataIOXmlbeans()
|
Method Summary | |
---|---|
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. |
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 ALDParametrizedClassDataIOXmlbeans()
Method Detail |
---|
public 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 ALDStandardizedDataIOXmlbeans
field
- 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 class
ALDDataIOProviderException
ALDDataIOManagerException
ALDDataIOManagerXmlbeans
public 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.
ALDDataIOProviderException
ALDDataIOManagerException
public 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 pre
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |