public class Node extends Entry
| Constructor and Description |
|---|
Node(Node
Create a new Node that is a child of the denoted parent with the denoted name.
|
| Modifier and Type | Method and Description |
|---|---|
Node |
addChildNode(String
Add a child node to this node with the denoted name.
|
Entry |
getChild(int n)
Get the n'th child of this node.
|
Entry |
getChildEntry(String
Find the entry with the denoted name.
|
Node |
getChildNode(String
Find the node with the denoted name.
|
List |
getChilds()
Get the list of child nodes.
|
int |
getIndexOfChild(Object
Get the index of the denoted child entry.
|
List |
getLeafs()
Get the list of child leafs.
|
String |
getName()
|
int |
getTotalNumberOfChilds()
|
boolean |
hasChildNode(String
Find out whether this node has a child with the denoted name.
|
int |
remove(Entry
Remove the denoted entry from the tree.
|
void |
setName(String
|
String |
toString()
|
getNamespace, getParent, getPath, getTreePathpublic void setName(Stringname)
name - the name of this node.
public StringgetName()
public NodeaddChildNode(String childname)
childname - the name of the child.
public int getIndexOfChild(Objectchild)
child - the object to lookup.
public StringtoString()
public int getTotalNumberOfChilds()
public EntrygetChild(int n)
n - the index of the child.
public boolean hasChildNode(Stringchildname)
childname - the name of the child to find
public NodegetChildNode(String childname)
childname - the name of the node to find.
public EntrygetChildEntry(String childname)
childname - the name of the entry to find.
public int remove(Entryentry)
entry - the entry to remove.