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
|
| Methods inherited from interface java.util.Comparator |
compare, equals |
TEMPLATE
public static final java.lang.String TEMPLATE
- See Also:
- Constant Field Values
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)