public class TreeNode extends java.lang.Object implements TreeNodeIF
ImplementationIF| Constructor and Description |
|---|
TreeNode(java.util.List<Treenode> list)
Create the node by passing a list of root element.
|
TreeNode(TreeNodeIF parent,
Treenode xsdTreeNode)
Create the node by passing the tree node XML tag.
|
| Modifier and Type | Method and Description |
|---|---|
protected TreeNodeIF[] |
createChildren(java.util.List<Treenode> list)
Create the child nodes.
|
java.util.Iterator<TreeNodeIF> |
getChildren()
Get the children of the node.
|
java.lang.String |
getName()
Get the name of the node.
|
TreeNodeIF |
getParent()
Get the parent of the node.
|
java.lang.String |
getProperty(java.lang.String key)
Get a property.
|
java.util.Iterator<java.lang.String> |
getPropertyKeys()
Get property keywords.
|
public TreeNode(java.util.List<Treenode> list)
list - the list of tree root elements.public TreeNode(TreeNodeIF parent, Treenode xsdTreeNode)
parent - the parent node.xsdTreeNode - the descriptor of this node.public java.lang.String getName()
getName in interface TreeNodeIFpublic TreeNodeIF getParent()
getParent in interface TreeNodeIFpublic java.util.Iterator<TreeNodeIF> getChildren()
getChildren in interface TreeNodeIFpublic java.util.Iterator<java.lang.String> getPropertyKeys()
getPropertyKeys in interface TreeNodeIFpublic java.lang.String getProperty(java.lang.String key)
getProperty in interface TreeNodeIFkey - the property keyprotected TreeNodeIF[] createChildren(java.util.List<Treenode> list)
list - the of treenode xml descriptors.