com.raritantechnologies.searchApp.filters
Class MatcherResultSetFilter

java.lang.Object
  extended bycom.raritantechnologies.searchApp.filters.MatcherResultSetFilter
All Implemented Interfaces:
IConfigurable, IResultSetFilter

public class MatcherResultSetFilter
extends java.lang.Object
implements IResultSetFilter

Uses a IResultMatcher to filter ResultSet. Returns matched documents or either no results or original result set.

XML Configuration Template:
   <ResultSetFilter class="com.raritantechnologies.searchApp.filters.MatcherResultSetFilter"
                       noMatchReturn="[ ALL|NONE - if ALL - return original result set if none match ]" >

     <ResultMatcher class="[ class of com.raritantechnologies.searchApp.IResultMatcher ]" >

     </ResultMatcher>

   </ResultSetFilter>
 


Field Summary
 
Fields inherited from interface com.raritantechnologies.searchApp.IResultSetFilter
TEMPLATE
 
Constructor Summary
MatcherResultSetFilter()
           
 
Method Summary
 IResultSet filterResultSet(java.lang.String sessionID, IResultSet resultSet)
          Filter the IResultSet (somehow)
 java.lang.String getConfigurationXML()
           
 java.lang.String getConfigurationXML(java.lang.String configurationTemplate)
           
 void initialize(org.w3c.dom.Element elem)
          Initialize the from XML Element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MatcherResultSetFilter

public MatcherResultSetFilter()
Method Detail

filterResultSet

public IResultSet filterResultSet(java.lang.String sessionID,
                                  IResultSet resultSet)
Description copied from interface: IResultSetFilter
Filter the IResultSet (somehow)

Specified by:
filterResultSet in interface IResultSetFilter

initialize

public void initialize(org.w3c.dom.Element elem)
Description copied from interface: IResultSetFilter
Initialize the from XML Element.

Specified by:
initialize in interface IResultSetFilter

getConfigurationXML

public java.lang.String getConfigurationXML()

getConfigurationXML

public java.lang.String getConfigurationXML(java.lang.String configurationTemplate)