ORG.oclc.util
Class Tree
java.lang.Object
|
+--ORG.oclc.util.Tree
- public class Tree
- extends Object
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Tree
public Tree()
Tree
public Tree(Object cell)
Tree
public Tree(Tree parent,
Object cell)
dump
public void dump()
depth
public int depth()
- count root as depth 0
maxDepth
public int maxDepth()
trimTo
public void trimTo(int level)
addChild
public Tree addChild(Tree child)
- Add a child to a node. Returns a reference to that child
addSibling
public void addSibling(Tree sibling)
getChildren
public final Tree getChildren()
getLastChild
public final Tree getLastChild()
getSiblings
public final Tree getSiblings()
getParent
public final Tree getParent()
getCell
public final Object getCell()
elements
public final Enumeration elements()
treeElements
public final Enumeration treeElements()
childElements
public final Enumeration childElements()
childTreeElements
public final Enumeration childTreeElements()