public class Tree extends TreeNode
childNodeKeys, childNodes, count, name, parent, value, valueType
Constructor and Description |
---|
Tree(java.lang.String theValueType)
Create a new instance of Tree.
|
Tree(java.lang.String theName,
java.lang.String theValueType)
Create a new instance of Tree.
|
Modifier and Type | Method and Description |
---|---|
void |
clearTree()
Clear the whole tree by removing all child nodes.
|
java.lang.Object |
clone()
Clone and return a copy of this object.
|
java.lang.String |
toString()
Return a string-based description of the node branch.
|
addChildNode, addChildNode, clearChildNodes, getChildNode, getChildNodeDeep, getChildNodeKeys, getChildNodes, getChildNodeValue, getChildNodeValueDeep, getCount, getName, getParent, getValue, getValueType, getValueTypeMD, hasChildNode, hasChildNodeDeep, hasChildNodes, hasChildNodeValue, hasChildNodeValueDeep, hasValue, isLeaf, maxDepth, nodesAtLevel, removeChildNode, setChildNodes, setChildNodes, setCount, setParent, setValue, toString, treeValueDeep
public Tree(java.lang.String theValueType) throws java.lang.Exception
theValueType
- the type of value that this node supports.java.lang.Exception
- any error.public Tree(java.lang.String theName, java.lang.String theValueType)
theName
- a unique name or ID for the tree.theValueType
- the tree value type.