|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A CompositeNode works with NodeTrees and LeafNodes to create heirarchical object trees. An example is a file system where directories can be viewed LeafNodes and directories can be viewed as CompositeNodes. TreeNodes can be viewed as the top level of the tree structures.
Method Summary | |
void |
addCompositeNode(java.lang.String childNodeName,
CompositeNode addNode)
|
void |
addLeafNode(java.lang.String childNodeName,
LeafNode addNode)
|
boolean |
compositeNodeExists(java.lang.String childNodeName)
Returns true if the compositeNodeExists |
CompositeNode |
getCompositeNode(java.lang.String childNodeName)
Return the composite node pointed to by the node name |
java.lang.String |
getCompositeNodeKey(java.lang.String nodeName)
|
LeafNode |
getLeafNode(java.lang.String childNodeName,
java.lang.String childNodeType)
Return the leaf node pointed to by the node name. |
java.lang.String |
getLeafNodeKey(java.lang.String nodeName)
|
CompositeNode |
getRootNode()
Return the NodeTrees root CompositeNode i.e. |
boolean |
leafNodeExists(java.lang.String childNodeName)
Returns true if the leafNodeExists |
Method Detail |
public CompositeNode getRootNode()
public CompositeNode getCompositeNode(java.lang.String childNodeName)
public LeafNode getLeafNode(java.lang.String childNodeName, java.lang.String childNodeType)
public boolean leafNodeExists(java.lang.String childNodeName)
public boolean compositeNodeExists(java.lang.String childNodeName)
public void addCompositeNode(java.lang.String childNodeName, CompositeNode addNode)
public void addLeafNode(java.lang.String childNodeName, LeafNode addNode)
public java.lang.String getCompositeNodeKey(java.lang.String nodeName)
public java.lang.String getLeafNodeKey(java.lang.String nodeName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |