public class Tree<T>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<java.lang.String,java.lang.Object> |
nodes |
| Constructor and Description |
|---|
Tree() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<Node<T>> |
climb(Node<T> n) |
Node<T> |
get(java.lang.String name)
Quick access to any node in the tree.
|
Node<T> |
getRootElement()
Return the root Node of the tree.
|
void |
setRootElement(Node<T> rootElement)
Set the root Element for the tree.
|
java.util.List<Node<T>> |
toList()
Returns the Tree
|
java.lang.String |
toString()
Returns a String representation of the Tree.
|
public Node<T> get(java.lang.String name)
name - public Node<T> getRootElement()
public void setRootElement(Node<T> rootElement)
rootElement - the root element to set.public java.util.List<Node<T>> toList()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2007–2023. All rights reserved.