Poseidon for UMLTM
  UMLdoc
 PREV  CLASSIFIER    NEXT  CLASSIFIER     FRAMES    NO FRAMES      
SUMMARY:   INNER | ATTR | ASSOC | CONSTR | METHOD     DETAIL:   INNER | ATTR | ASSOC | CONSTR | METHOD     DIAGRAMS:   COLLAB | SEQ | STATE | ACTIV

com.gentleware.services.util

Class TreeNode

com.gentleware.services.util.TreeNode

public class TreeNode



 Attribute Summary
private List  _children
 
private Object  _content
 
arrow_up
 

 Association Summary
private TreeNode  _parent
 
public TreeNode  treeNode
 
arrow_up
 

 Constructor Summary
public   TreeNode(TreeNode parent, Object content, List children)
 
public   TreeNode(Object content)
 
public   TreeNode(TreeNode parent, Object content)
 
public   TreeNode(Object content, List children)
 
arrow_up
 

 Method Summary
public void   addChild(TreeNode child, int index)
Add a new child to the tree node. 
public void   addChild(TreeNode child)
 
private void   addTreeNodeDump(StringBuffer treeDump)
 
public List   getChildren()
 
public Object   getContent()
 
public TreeNode   getParent()
 
public TreeNode   getRoot()
 
public String   getTreeDump()
 
public boolean   isLeaf()
 
public void   removeAllChildren()
 
public boolean   removeChild(TreeNode child)
 
private void   removeParent()
 
public void   setContent(Object content)
 
public void   setParent(TreeNode parent)
 
public String   toString()
 
arrow_up
 

Tagged Values
static false
gentleware-imported-line-number 15
gentleware-imported-package-statement-line-number 5
 

 Attribute Detail

_children

private List _children

arrow_up


_content

private Object _content

arrow_up
 Association Detail

_parent

private TreeNode _parent

arrow_up


treeNode

public TreeNode treeNode

arrow_up
 Constructor Detail

TreeNode

public com.gentleware.services.util.TreeNode TreeNode(TreeNode parent, Object content, List children)

Parameters:
parent -
content -
children -
Returns:
arrow_up


TreeNode

public com.gentleware.services.util.TreeNode TreeNode(Object content)

Parameters:
content -
Returns:
arrow_up


TreeNode

public com.gentleware.services.util.TreeNode TreeNode(TreeNode parent, Object content)

Parameters:
parent -
content -
Returns:
arrow_up


TreeNode

public com.gentleware.services.util.TreeNode TreeNode(Object content, List children)

Parameters:
content -
children -
Returns:
arrow_up
 Method Detail

addChild

public void addChild(TreeNode child, int index)


Add a new child to the tree node.  
Parameters:
child - the child node
index - position of the child in the childnode list, if index < 0 the child is added at the end of the list
arrow_up


addChild

public void addChild(TreeNode child)

Parameters:
child -
arrow_up


addTreeNodeDump

private void addTreeNodeDump(StringBuffer treeDump)

Parameters:
treeDump -
arrow_up


getChildren

public List getChildren()

Returns:
arrow_up


getContent

public Object getContent()

Returns:
arrow_up


getParent

public TreeNode getParent()

Returns:
arrow_up


getRoot

public TreeNode getRoot()

Returns:
arrow_up


getTreeDump

public String getTreeDump()

Returns:
arrow_up


isLeaf

public boolean isLeaf()

Returns:
arrow_up


removeAllChildren

public void removeAllChildren()

arrow_up


removeChild

public boolean removeChild(TreeNode child)

Parameters:
child -
Returns:
arrow_up


removeParent

private void removeParent()

arrow_up


setContent

public void setContent(Object content)

Parameters:
content -
arrow_up


setParent

public void setParent(TreeNode parent)

Parameters:
parent -
arrow_up


toString

public String toString()

Returns:
arrow_up
Created  2004 - 12 - 1

    Poseidon for UMLTM
  UMLdoc
 PREV  CLASSIFIER    NEXT  CLASSIFIER     FRAMES    NO FRAMES      
SUMMARY:   INNER | ATTR | ASSOC | CONSTR | METHOD     DETAIL:   INNER | ATTR | ASSOC | CONSTR | METHOD     DIAGRAMS:   COLLAB | SEQ | STATE | ACTIV

Generated with Poseidon for UMLTM.
Poseidon is a registered trademark of Gentleware AG in Germany, USA and other countries. Copyright 2003-2004 Gentleware AG, Schanzenstr. 70, 20357 Hamburg, Germany. All Rights Reserved.

UML is a trademark or registered trademark of Object Management Group, Inc. in the U.S. and other countries.