com.raritantechnologies.utils.tree.filter
Class MergeNodeAttributesFilter
java.lang.Object
com.raritantechnologies.utils.tree.filter.MergeNodeAttributesFilter
- All Implemented Interfaces:
- IConfigurable, IMergeTreeNodesFilter
- public class MergeNodeAttributesFilter
- extends java.lang.Object
- implements IMergeTreeNodesFilter
IMergeTreeNodesFilter that adds node attribute values and nested result values from source
node to target node.
XML Configuration Template:
<MergeNodeFilter class="com.raritantechnologies.utils.tree.filter.MergeNodeAttributesFilter" >
<!-- One or more NodeAttributeMap elements -->
<!-- sourceAttribute and targetAttribute formats: -->
<!-- Attribute:[ attribute name ] -->
<!-- ResultPath:[ nested result path/result field name ] -->
<NodeAttributeMap sourceAttribute="[ name of source node attribute or result path ]"
targetAttribute="[ name of target node attribute or result path ]"
multipleValues="[true|false(default) ]"
replace="[true|false(default)]" >
<!-- Optional IResultMatcher to select nested source IResult objects for copying -->
<ResultMatcher class="[ class of com.raritantechnologies.searchApp.IResultMatcher ]" >
</ResultMatcher>
<!-- Optional IFieldFormatter to modify nested result object before copying -->
<ResultFormatter class="[ class of com.raritantechnologies.IFieldFormatter ]" >
</ResultFormatter>
<!-- Optional StringFilter to modify source values before copying to destination node -->
<StringFilter class="[ class of com.raritantechnologies.utils.filter.IStringFilter ]" >
</StringFilter>
</NodeAttributeMap>
</MergeNodeFilter>
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 |
MergeNodeAttributesFilter
public MergeNodeAttributesFilter()
mergeNodes
public TreeNode mergeNodes(TreeNode nodeOne,
TreeNode nodeTwo,
TreeRoot sourceTree,
RaritanPageContext rpc)
- Specified by:
mergeNodes in interface IMergeTreeNodesFilter
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