com.raritantechnologies.utils.tree.filter
Class TreeNodeAttributeConcatenator

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

public class TreeNodeAttributeConcatenator
extends java.lang.Object
implements ITreeNodeFilter

Creates a composite TreeNode attribute by concatenating two or more attribute fields into one. Can either concatenate the multiple values into a single string value or create a deduplicated multi-value list.

XML Configuration Template:
  <NodeFilter class="com.raritantechnologies.utils.tree.filter.TreeNodeAttributeConcatenator"
                 attributeNames="[ name of attribute to be spliced together ]"
                 outputAttribute="[ name of attribute to receive the concatenated result ]"
                 delimiter="[ delimiter to use for concatenating ]"
                 mergeLists="[ true | false(default) - if true keep as multi attribute list ]" />
 

Developed by Raritan Technologies Inc..

Author:
Ted Sullivan

Field Summary
 
Fields inherited from interface com.raritantechnologies.utils.tree.filter.ITreeNodeFilter
TEMPLATE
 
Constructor Summary
TreeNodeAttributeConcatenator()
           
 
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

TreeNodeAttributeConcatenator

public TreeNodeAttributeConcatenator()
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