SRJRCFrames
v0.1.296

de.schwarzrot.util
Class TreeNode<E>

java.lang.Object
  extended by de.schwarzrot.util.TreeNode<E>

public class TreeNode<E>
extends Object


Field Summary
static String PATH_SEPARATOR
           
 
Constructor Summary
TreeNode(String name)
           
TreeNode(String name, E value)
           
TreeNode(TreeNode<E> parent, String name, E value)
           
 
Method Summary
 boolean containsChild(String name)
           
 TreeNode<E> getChildNode(String name)
           
 Collection<TreeNode<E>> getChildNodes()
           
 Collection<String> getChildren()
           
 String getName()
           
 String getParent()
           
 TreeNode<E> getParentNode()
           
 String getPath()
           
 E getValue()
           
 boolean hasChildren()
           
 void putChildNode(TreeNode<E> child)
           
static
<E> TreeNode<E>
putValueByPath(TreeNode<E> root, String path, E value)
           
 void setParent(TreeNode<E> parent)
           
 void setValue(E value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PATH_SEPARATOR

public static final String PATH_SEPARATOR
See Also:
Constant Field Values
Constructor Detail

TreeNode

public TreeNode(String name)

TreeNode

public TreeNode(String name,
                E value)

TreeNode

public TreeNode(TreeNode<E> parent,
                String name,
                E value)
Method Detail

containsChild

public final boolean containsChild(String name)

getChildNode

public TreeNode<E> getChildNode(String name)

getChildNodes

public Collection<TreeNode<E>> getChildNodes()

getChildren

public Collection<String> getChildren()

getName

public final String getName()

getParent

public final String getParent()

getParentNode

public final TreeNode<E> getParentNode()

getPath

public String getPath()

getValue

public final E getValue()

hasChildren

public final boolean hasChildren()

putChildNode

public void putChildNode(TreeNode<E> child)

setParent

public void setParent(TreeNode<E> parent)

setValue

public final void setValue(E value)

putValueByPath

public static <E> TreeNode<E> putValueByPath(TreeNode<E> root,
                                             String path,
                                             E value)

SRJRCFrames
v0.1.296

hosted at
Find SRJRCFrames at SourceForge.net. Fast, secure and free:
           Open Source Software download
Submit a bug or request a feature

SRJRCFrames is published according to the GNU General Public License
Copyright 2005-2012 Reinhard Mantey - some rights reserved.