public class KD_TreeNodeParser extends TreeNodeParser
KD_TreeNode node in a tree structure, although the root tree node
is parsed using KD_TreeParser.
Note that only the structure is parsed. Any stored value is cast only to a String.| Constructor and Description |
|---|
KD_TreeNodeParser()
Create a new instance of KD_TreeNodeParser
|
| Modifier and Type | Method and Description |
|---|---|
org.ai_heuristic.tree.TreeNode |
parse(org.licas_xml.abs.Element toParse)
Parse the XML element back into a TreeNode object.
|
org.licas_xml.abs.Element |
serialize(org.ai_heuristic.tree.KD_TreeNode treeNode)
Serialize the object into an XML element.
|
org.licas_xml.abs.Element |
serialize(java.lang.Object toSerialize)
Serialize the object into an XML element.
|
serializepublic KD_TreeNodeParser()
public org.licas_xml.abs.Element serialize(java.lang.Object toSerialize)
throws java.lang.Exception
serialize in interface org.ai_heuristic.def.ParserDefserialize in class TreeNodeParsertoSerialize - the object to serialize. Of type TreeNode.java.lang.Exception - any error.public org.licas_xml.abs.Element serialize(org.ai_heuristic.tree.KD_TreeNode treeNode)
throws java.lang.Exception
treeNode - the node to serialize.java.lang.Exception - any error.public org.ai_heuristic.tree.TreeNode parse(org.licas_xml.abs.Element toParse)
throws java.lang.Exception
parse in interface org.ai_heuristic.def.ParserDefparse in class TreeNodeParsertoParse - the element to parse.java.lang.Exception - any error.