public class ParameterParser
extends java.lang.Object
implements org.ai_heuristic.def.ParserDef
WsdlParamInfo
or a ParamInfo
object to or from XML.
This parses all entries, whereas the method parser only parses the value part.Constructor and Description |
---|
ParameterParser()
Create a new instance of ParameterParser.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
parse(org.licas_xml.abs.Element toParse)
Parse an XML description of a
ParamInfo or WsdlParamInfo object back into a Java object. |
org.licas_xml.abs.Element |
serialize(java.lang.Object toSerialize)
Serialize a
ParamInfo or WsdlParamInfo object to XML. |
public ParameterParser()
public org.licas_xml.abs.Element serialize(java.lang.Object toSerialize) throws java.lang.Exception
ParamInfo
or WsdlParamInfo
object to XML.serialize
in interface org.ai_heuristic.def.ParserDef
toSerialize
- the ParamInfo object to serialize.java.lang.Exception
- any error.public java.lang.Object parse(org.licas_xml.abs.Element toParse) throws java.lang.Exception
ParamInfo
or WsdlParamInfo
object back into a Java object.parse
in interface org.ai_heuristic.def.ParserDef
toParse
- the XML description to parse.java.lang.Exception
- any error.