com.raritantechnologies.utils.tree
Class TreeNodeComparatorSet

java.lang.Object
  extended bycom.raritantechnologies.utils.tree.TreeNodeComparatorSet
All Implemented Interfaces:
java.util.Comparator, IConfigurable

public class TreeNodeComparatorSet
extends java.lang.Object
implements java.util.Comparator, IConfigurable

Executes a set of TreeNodeComparator operations in either AND or OR mode.

XML Configuration Template:
  <TreeNodeComparatorSet isAnd="[true|false(default) ]" >

    <!-- One or more TreeNodeComparators -->
    <TreeNodeComparator>

    </TreeNodeComparator>

    <TreeNodeComparator />

  </TreeNodeComparatorSet>

 


Constructor Summary
TreeNodeComparatorSet()
           
 
Method Summary
 int compare(java.lang.Object ob1, java.lang.Object ob2)
           
 boolean equals(java.lang.Object obj)
           
 void initialize(org.w3c.dom.Element elem)
          Initializes the object from an XML tag or element.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeNodeComparatorSet

public TreeNodeComparatorSet()
Method Detail

equals

public boolean equals(java.lang.Object obj)
Specified by:
equals in interface java.util.Comparator

compare

public int compare(java.lang.Object ob1,
                   java.lang.Object ob2)
Specified by:
compare in interface java.util.Comparator

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