Open SiteSearch 4.1.1
Final

ORG.oclc.util
Class Tree

java.lang.Object
  |
  +--ORG.oclc.util.Tree

public class Tree
extends Object


Constructor Summary
Tree()
           
Tree(Object cell)
           
Tree(Tree parent, Object cell)
           
 
Method Summary
 Tree addChild(Tree child)
          Add a child to a node.
 void addSibling(Tree sibling)
           
 Enumeration childElements()
           
 Enumeration childTreeElements()
           
 int depth()
          count root as depth 0
 void dump()
           
 Enumeration elements()
           
 Object getCell()
           
 Tree getChildren()
           
 Tree getLastChild()
           
 Tree getParent()
           
 Tree getSiblings()
           
 int maxDepth()
           
 Enumeration treeElements()
           
 void trimTo(int level)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Tree

public Tree()

Tree

public Tree(Object cell)

Tree

public Tree(Tree parent,
            Object cell)
Method Detail

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()

Open SiteSearch 4.1.1
Final