com.raritantechnologies.utils.tree.filter
Class CopyTreeNodeFilter

java.lang.Object
  extended bycom.raritantechnologies.utils.tree.filter.CopyTreeNodeFilter
All Implemented Interfaces:
IConfigurable, ITreeFilter, ITreeNodeFilter

public class CopyTreeNodeFilter
extends java.lang.Object
implements ITreeFilter, ITreeNodeFilter

Used to replicate nodes given a parent reference attribute (alternate parent ID). Enables polyhierarchies to be established in a Tree Object Model via copying.

XML Configuration Template:
  <NodeFilter class="com.raritantechnologies.utils.tree.filter.CopyTreeNodeFilter"
                 parentIDAttribute="[ tree attribute that contains alternate parent location(s) ]" >

  </NodeFilter>
 

Developed by Raritan Technologies Inc..

Author:
Ted Sullivan

Field Summary
 
Fields inherited from interface com.raritantechnologies.utils.tree.ITreeFilter
TEMPLATE
 
Fields inherited from interface com.raritantechnologies.utils.tree.filter.ITreeNodeFilter
TEMPLATE
 
Constructor Summary
CopyTreeNodeFilter()
           
 
Method Summary
 TreeNode filterNode(TreeNode theNode, RaritanPageContext pContext)
           
 TreeNode filterNode(TreeNode theNode, TreeRoot sourceTree, RaritanPageContext rpc)
           
 TreeRoot filterTree(TreeRoot tree, RaritanPageContext rpc)
          Filter (prune, add, modify etc.) a Tree object.
 void initialize(org.w3c.dom.Element elem)
          Initializes the object from an XML tag or element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CopyTreeNodeFilter

public CopyTreeNodeFilter()
Method Detail

filterTree

public TreeRoot filterTree(TreeRoot tree,
                           RaritanPageContext rpc)
Description copied from interface: ITreeFilter
Filter (prune, add, modify etc.) a Tree object.

Specified by:
filterTree in interface ITreeFilter

filterNode

public TreeNode filterNode(TreeNode theNode,
                           TreeRoot sourceTree,
                           RaritanPageContext rpc)
Specified by:
filterNode in interface ITreeFilter

filterNode

public TreeNode filterNode(TreeNode theNode,
                           RaritanPageContext pContext)
Specified by:
filterNode in interface ITreeNodeFilter

initialize

public void initialize(org.w3c.dom.Element elem)
Description copied from interface: IConfigurable
Initializes the object from an XML tag or element. This method is called by the Framework as part of the application initializtion. see ConfigurationManager, XMLConfigurationManager, XMLSearchFieldMapFactory, XMLSearchSourceFactory. Configurable objects that are owned or contained by other configurable objects will be initialized in by the parent object.

Specified by:
initialize in interface IConfigurable