public class MethodInfoParser
extends java.lang.Object
implements org.ai_heuristic.def.ParserDef
MethodInfo
object to or from XML.Constructor and Description |
---|
MethodInfoParser()
Create a new instance of MethodInfoParser.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
parse(org.licas_xml.abs.Element toParse)
Parse an XML description of a MethodInfo object back into a Java object.
|
void |
parseInfo(org.licas_xml.abs.Element toParse,
MethodInfo methodInfo)
Parse an XML description of a MethodInfo object back into a Java object.
|
org.licas_xml.abs.Element |
serialize(java.lang.Object toSerialize)
Serialize a MethodInfo object to XML.
|
public MethodInfoParser()
public org.licas_xml.abs.Element serialize(java.lang.Object toSerialize) throws java.lang.Exception
serialize
in interface org.ai_heuristic.def.ParserDef
toSerialize
- the MethodInfo object to serialize.java.lang.Exception
- any error.public java.lang.Object parse(org.licas_xml.abs.Element toParse) throws java.lang.Exception
parse
in interface org.ai_heuristic.def.ParserDef
toParse
- the XML description to parse.java.lang.Exception
- any error.public void parseInfo(org.licas_xml.abs.Element toParse, MethodInfo methodInfo) throws java.lang.Exception
toParse
- the XML description to parse.methodInfo
- the method info object to place the parsed content in.java.lang.Exception
- any error.