com.raritantechnologies.utils.tree
Class ThesaurusNode

java.lang.Object
  extended bycom.raritantechnologies.utils.tree.TreeNode
      extended bycom.raritantechnologies.utils.tree.ThesaurusNode

public class ThesaurusNode
extends TreeNode

Specialized TreeNode that can have multiple parent nodes.


Developed by Raritan Technologies Inc..

Author:
Ted Sullivan

Field Summary
 
Fields inherited from class com.raritantechnologies.utils.tree.TreeNode
activeNode, children, maxCount, name, needsUpdate, nodeCount, nodeID, openState, parent
 
Constructor Summary
ThesaurusNode()
           
 
Method Summary
 void addParent(TreeNode parent)
           
 java.util.List getAncestors(boolean includeSelf, boolean includeRoot)
           
 java.util.Iterator getParents()
           
 java.util.List getPaths(java.lang.String separator, boolean initSeparator)
           
 boolean hasMultipleParents()
          methods to support Thesaurus structure default is single parent.
protected  void setParent(TreeNode parent)
           
 
Methods inherited from class com.raritantechnologies.utils.tree.TreeNode
addAttribute, addChildNode, addChildNode, addResult, convertToResult, copyNode, copyNode, copyNodeAttributes, copyNodeCount, copyNodeOnly, createAttributesResult, deleteChildNodes, findNode, getActiveNode, getAllParentAttributes, getAllParentAttributes, getAllParentAttributes, getAllSubAttributes, getAllSubAttributes, getAllSubAttributes, getAncestorPaths, getAncestors, getAttribute, getAttributeNames, getAttributeSet, getAttributeSet, getAttributeSet, getAttributeValues, getAttributeValues, getChildNode, getChildren, getChildrenCount, getDescendents, getDescendents, getDescendents, getLevel, getName, getNameCount, getNestedResultSet, getNestedResultSet, getNodeCount, getNodeID, getNodeIDValue, getParent, getPath, getPathNoRoot, getPathsNoRoot, getPatternStringValue, getResultSet, getRootNode, getSiblings, getSiblings, getTreeRoot, hasAttributeValue, hasChildren, hasMultipleValues, haveChildNode, isOpen, isRoot, isVisible, needsUpdate, removeAttribute, removeChildNode, setActiveNode, setActiveNodeID, setAttribute, setMaxCount, setName, setNeedsUpdate, setNodeCount, setNodeID, setOpenState, setResultSet, sortChildren, toggleState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThesaurusNode

public ThesaurusNode()
Method Detail

setParent

protected void setParent(TreeNode parent)
Overrides:
setParent in class TreeNode

hasMultipleParents

public boolean hasMultipleParents()
Description copied from class: TreeNode
methods to support Thesaurus structure default is single parent.

Overrides:
hasMultipleParents in class TreeNode

addParent

public void addParent(TreeNode parent)
Overrides:
addParent in class TreeNode

getParents

public java.util.Iterator getParents()
Overrides:
getParents in class TreeNode

getPaths

public java.util.List getPaths(java.lang.String separator,
                               boolean initSeparator)
Overrides:
getPaths in class TreeNode

getAncestors

public java.util.List getAncestors(boolean includeSelf,
                                   boolean includeRoot)
Overrides:
getAncestors in class TreeNode