com.ebasetech.ufs.utility
Class TreeNode

java.lang.Object
  extended bycom.ebasetech.ufs.utility.TreeNode
All Implemented Interfaces:
Child

public class TreeNode
extends java.lang.Object
implements Child


Field Summary
protected  TreeNode firstChild
           
protected  java.lang.Object info
           
protected  TreeNode nextSibling
           
protected  TreeNode parent
           
 
Constructor Summary
TreeNode(TreeNode parent, java.lang.Object info)
           
 
Method Summary
 Child _getParent()
           
 java.lang.Object _getUserObject()
           
 TreeNode addChild(java.lang.Object info)
           
 int getChildCount()
           
 TreeNode getFirstChild()
           
 java.lang.Object getInfo()
           
 TreeNode getLastChild()
           
 TreeNode getNextSibling()
           
 TreeNode getParentNode()
           
 boolean isTopLevel()
           
 void setInfo(java.lang.Object info)
           
 java.lang.String toString()
           
 void visitAllNodes(TreeVisitor visitor, boolean includeThis)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

info

protected java.lang.Object info

parent

protected TreeNode parent

firstChild

protected TreeNode firstChild

nextSibling

protected TreeNode nextSibling
Constructor Detail

TreeNode

public TreeNode(TreeNode parent,
                java.lang.Object info)
Method Detail

addChild

public TreeNode addChild(java.lang.Object info)

getFirstChild

public TreeNode getFirstChild()

getLastChild

public TreeNode getLastChild()

getChildCount

public int getChildCount()

getParentNode

public TreeNode getParentNode()

getNextSibling

public TreeNode getNextSibling()

getInfo

public java.lang.Object getInfo()

setInfo

public void setInfo(java.lang.Object info)

toString

public java.lang.String toString()

visitAllNodes

public void visitAllNodes(TreeVisitor visitor,
                          boolean includeThis)

isTopLevel

public boolean isTopLevel()

_getParent

public Child _getParent()
Specified by:
_getParent in interface Child

_getUserObject

public java.lang.Object _getUserObject()
Specified by:
_getUserObject in interface Child