com.raritantechnologies.searchApp.resultComparators
Class ResultHasFieldMatcher
java.lang.Object
com.raritantechnologies.searchApp.resultComparators.ResultHasFieldMatcher
- All Implemented Interfaces:
- IConfigurable, IResultMatcher
- public class ResultHasFieldMatcher
- extends java.lang.Object
- implements IResultMatcher
Matches if one or more fields of an IResult has a non-blank value.
XML Configuration Template:
<ResultMatcher class="com.raritantechnologies.searchApp.resultComparators.ResultHasFieldMatcher"
isAnd="true"
caseSensitive="[true(default)|false]" >
<Fields>
<Field ID="[the field ID]" matchValue="true" nestedField="true|false(default)" /> <!-- (default) match if have this field -->
<Field ID="[the field ID 2]" matchValue="false" /> <!-- match if don't have this field -->
</Fields>
</ResultMatcher>
Developed by
Raritan Technologies .
- Author:
- Ted Sullivan
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResultHasFieldMatcher
public ResultHasFieldMatcher()
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
equals
public boolean equals(ILoginInfo user,
IResult result)
- Specified by:
equals in interface IResultMatcher
getConfigurationXML
public java.lang.String getConfigurationXML()
- Specified by:
getConfigurationXML in interface IResultMatcher
getConfigurationXML
public java.lang.String getConfigurationXML(java.lang.String configurationTemplate)
- Specified by:
getConfigurationXML in interface IResultMatcher