com.raritantechnologies.utils.tree.filter
Class TreeNodeAttributeConcatenator
java.lang.Object
com.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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TreeNodeAttributeConcatenator
public TreeNodeAttributeConcatenator()
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