com.raritantechnologies.searchApp.query.filters
Class QueryResultMatcherFilter

java.lang.Object
  extended bycom.raritantechnologies.searchApp.query.filters.QueryResultMatcherFilter
All Implemented Interfaces:
IConfigurable, IQueryResultSetFilter

public class QueryResultMatcherFilter
extends java.lang.Object
implements IQueryResultSetFilter

Filters QueryResultBeanSets based on the IResultSet of each QueryResultBean using a nested IResultMatcher.

Finds queries that produce results of certain type.

XML Configuration Template:
   <QueryResultFilter class="com.raritantechnologies.searchApp.query.filters.QueryResultMatcherFilter"
                         matchIf="all/any" >

     <ResultMatcher class="[some IResultMatcher class]" >

     </ResultMatcher>

   </QueryResultFilter>
  

Developed by Raritan Technologies .

Author:
Ted Sullivan

Constructor Summary
QueryResultMatcherFilter()
           
 
Method Summary
 QueryResultBeanSet filterQueries(QueryResultBeanSet theSet)
          Filters a QueryResultBeanSet object.
 void initialize(org.w3c.dom.Element elem)
          Initializes the object from an XML tag or element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryResultMatcherFilter

public QueryResultMatcherFilter()
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

filterQueries

public QueryResultBeanSet filterQueries(QueryResultBeanSet theSet)
Description copied from interface: IQueryResultSetFilter
Filters a QueryResultBeanSet object. Returns a filtered verion of the QueryResultBeanSet.

Specified by:
filterQueries in interface IQueryResultSetFilter