public class LinkQueryParser
extends java.lang.Object
implements org.ai_heuristic.def.ParserDef
LinkQueryConfig
object to or from XML.Constructor and Description |
---|
LinkQueryParser()
Create a new instance of LinkQueryParser.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
parse(org.licas_xml.abs.Element toParse)
Parse an XML description of a
LinkQueryConfig object back into the Java object. |
void |
parseInfo(org.licas_xml.abs.Element toParse,
LinkQueryConfig linkConfig)
Parse an XML description of a
LinkQueryConfig object back into the Java object. |
org.licas_xml.abs.Element |
serialize(java.lang.Object toSerialize)
Serialize a
LinkQueryConfig object to XML. |
public LinkQueryParser()
public org.licas_xml.abs.Element serialize(java.lang.Object toSerialize) throws java.lang.Exception
LinkQueryConfig
object to XML.serialize
in interface org.ai_heuristic.def.ParserDef
toSerialize
- the LinkQueryConfig object to serialize.java.lang.Exception
- any error.public java.lang.Object parse(org.licas_xml.abs.Element toParse) throws java.lang.Exception
LinkQueryConfig
object back into the Java object.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, LinkQueryConfig linkConfig) throws java.lang.Exception
LinkQueryConfig
object back into the Java object.toParse
- the XML description to parse.linkConfig
- the query config object to place the parsed content in.java.lang.Exception
- any error.