com.raritantechnologies.utils.tree.filter
Class TreeNodeAttributeSplitter

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

public class TreeNodeAttributeSplitter
extends java.lang.Object
implements ITreeNodeFilter

Splits an attribute field on a delimiter and adds multiple attributes to the treeNode. Can break up a delimited attribute into multiple attribute fields or add multiple attribute values to a single attribute field.

XML Configuration Template:
  <NodeFilter class="com.raritantechnologies.utils.tree.filter.TreeNodeAttributeSplitter"
                 attributeName="[ name of attribute to be split ]"
                 splitAttributeNames="[ name(s) of attribute to receive the split values ]"
                 delimiter="[ delimiter to use for splitting ]"
                 usePatternDelimiter="[ true|false(default) - if true split on pattern not on characters ]" />
 

Developed by Raritan Technologies Inc..

Author:
Ted Sullivan

Field Summary
 
Fields inherited from interface com.raritantechnologies.utils.tree.filter.ITreeNodeFilter
TEMPLATE
 
Constructor Summary
TreeNodeAttributeSplitter()
           
 
Method Summary
 TreeNode filterNode(TreeNode theNode, RaritanPageContext pContext)
           
 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

TreeNodeAttributeSplitter

public TreeNodeAttributeSplitter()
Method Detail

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