com.raritantechnologies.utils.tree.filter
Class MarkAttributeDifferencesFilter
java.lang.Object
com.raritantechnologies.utils.tree.filter.MarkAttributeDifferencesFilter
- All Implemented Interfaces:
- IConfigurable, IMergeTreeNodesFilter
- public class MarkAttributeDifferencesFilter
- extends java.lang.Object
- implements IMergeTreeNodesFilter
Marks node attributes in first node that are:
- Identical across the two nodes.
- Present in the first node but not in the second node.
- Present in the second node but not in the first node.
XML Configuration Template:
<MergeNodeFilter class="com.raritantechnologies.utils.tree.filter.MarkAttributeDifferencesFilter"
attributeName="[ attribute to compare ]"
caseSensitive="[true(default)|false ]"
identicalValuesAttribute="[ attribute to get list of identical values ]"
nodeOneValuesAttribute="[ attribute to get list of values unique to first node ]"
nodeTwoValuesAttribute="[ attribute to get list of values unique to second node ]" />
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MarkAttributeDifferencesFilter
public MarkAttributeDifferencesFilter()
mergeNodes
public TreeNode mergeNodes(TreeNode nodeOne,
TreeNode nodeTwo,
TreeRoot sourceTree,
RaritanPageContext rpc)
- Specified by:
mergeNodes in interface IMergeTreeNodesFilter
hasDifferencesMarked
public boolean hasDifferencesMarked(TreeNode node)
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
setAttributeName
public void setAttributeName(java.lang.String attributeName)
setIdenticalValuesAttribute
public void setIdenticalValuesAttribute(java.lang.String identicalValuesAttribute)
setNodeOneValuesAttribute
public void setNodeOneValuesAttribute(java.lang.String nodeOneValuesAttribute)
setNodeTwoValuesAttribute
public void setNodeTwoValuesAttribute(java.lang.String nodeTwoValuesAttribute)
setCaseSensitive
public void setCaseSensitive(boolean caseSensitive)