com.raritantechnologies.utils.tree.filter
Class AddAttributeFilter

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

public class AddAttributeFilter
extends java.lang.Object
implements ITreeNodeFilter

Adds one or more fixed attributes to a TreeNode.

XML Configuration Template:
   <TreeNodeFilter class="com.raritantechnologies.utils.tree.filter.AddAttributeFilter" >

     <!-- One or more Attribute tags -->
     <Attribute name="[ name of attribute ]" value="[ value of attribute ]" />

     <Attribute etc... />

   </TreeNodeFilter>
 

Developed by Raritan Technologies Inc..

Author:
Ted Sullivan

Field Summary
 
Fields inherited from interface com.raritantechnologies.utils.tree.filter.ITreeNodeFilter
TEMPLATE
 
Constructor Summary
AddAttributeFilter()
           
 
Method Summary
 TreeNode filterNode(TreeNode treeNode, RaritanPageContext pageContext)
           
 java.lang.String getConfigurationXML()
           
 java.lang.String getConfigurationXML(java.lang.String configurationTemplate)
           
 void getConfigurationXML(java.io.Writer writer)
           
 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

AddAttributeFilter

public AddAttributeFilter()
Method Detail

filterNode

public TreeNode filterNode(TreeNode treeNode,
                           RaritanPageContext pageContext)
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

getConfigurationXML

public void getConfigurationXML(java.io.Writer writer)
                         throws java.io.IOException
Throws:
java.io.IOException

getConfigurationXML

public java.lang.String getConfigurationXML()

getConfigurationXML

public java.lang.String getConfigurationXML(java.lang.String configurationTemplate)