com.raritantechnologies.searchApp
Interface IResultComparator

All Superinterfaces:
java.util.Comparator, IConfigurable
All Known Implementing Classes:
CompositeResultComparator, FieldComparator, ResultFieldLengthComparator

public interface IResultComparator
extends IConfigurable, java.util.Comparator

Base interface for objects that can compare two IResult objects for relative ordering. extends basic Java comparator interface so that IResultComparators can be used in Collections.sort( ) applications.


Developed by Raritan Technologies .

Author:
Ted Sullivan

Field Summary
static java.lang.String TEMPLATE
           
 
Method Summary
 int compare(IResult res1, IResult res2)
           
 void initialize(org.w3c.dom.Element elem)
          Initializes the object from an XML tag or element.
 void setContext(java.util.Map parameterMap)
           
 
Methods inherited from interface java.util.Comparator
compare, equals
 

Field Detail

TEMPLATE

public static final java.lang.String TEMPLATE
See Also:
Constant Field Values
Method Detail

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

setContext

public void setContext(java.util.Map parameterMap)

compare

public int compare(IResult res1,
                   IResult res2)