ORG.oclc.util
Class VTree
java.lang.Object
|
+--ORG.oclc.util.VTree
- public class VTree
- extends Object
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
VTree
public VTree()
VTree
public VTree(VTree parent)
dump
public void dump()
depth
public int depth()
- count root as depth 0
maxDepth
public int maxDepth()
trimTo
public void trimTo(int level)
deleteChild
public void deleteChild(VTree child)
- Delete a child from a node.
addChild
public VTree addChild(VTree child)
- Add a child to a node. Returns a reference to that child
add1stChild
public VTree add1stChild(VTree child)
- Add a child which will be the first child in the list.
add1stSibling
public void add1stSibling(VTree sibling)
addSibling
public void addSibling(VTree sibling)
getChildren
public final VTree getChildren()
getLastChild
public VTree getLastChild()
dropLastChild
public VTree dropLastChild()
getSiblings
public final VTree getSiblings()
getParent
public final VTree getParent()
vtreeElements
public final Enumeration vtreeElements()
childVTreeElements
public final Enumeration childVTreeElements()