public class WorkInfoParser
extends java.lang.Object
implements org.ai_heuristic.def.ParserDef
WorkInfo
representation to or from XML.Constructor and Description |
---|
WorkInfoParser()
Creates a new instance of WorkInfoParser
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
parse(org.licas_xml.abs.Element toParse)
Parse an XML description of a WorkInfo object back into a Java object.
|
org.licas_xml.abs.Element |
serialize(java.lang.Object toSerialize)
Serialize a WorkInfo object to XML.
|
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 WorkInfo 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.