com.raritantechnologies.searchApp.query.filters
Class MoveVQLFilter

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

public class MoveVQLFilter
extends java.lang.Object
implements IQueryResultSetFilter

Can remove or change the field that VQL is placed. Useful for "cleaning" up complex VQL for display.

XML Configuration Schema:
    <QueryResultFilter class="com.raritantechnologies.searchApp.query.filters.MoveVQLFilter"
                          VQLPattern="[regular expression pattern for VQL]"
                          queryField="[ name of field containing query]"
                          vqlField="[ name of field to move VQL to]" />
 

Developed by Raritan Technologies .

Author:
Ted Sullivan

Constructor Summary
MoveVQLFilter()
           
 
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

MoveVQLFilter

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