com.jurismarches.vradi.services.search
Class FilterListQueryHandler

java.lang.Object
  extended by com.jurismarches.vradi.services.search.FilterListQueryHandler
All Implemented Interfaces:
QueryHandler

public class FilterListQueryHandler
extends Object
implements QueryHandler

FilterListHandler handles lucene queries and assembles them into a FilterList tree.

Since:
0.0.4
Version:
$Revision: 1443 $ $Date: 2010-09-20 10:50:49 +0200 (lun., 20 sept. 2010) $
Author:
$Author: chatellier $

Field Summary
protected  Stack<FilterList> filterListStack
           
 
Constructor Summary
FilterListQueryHandler()
           
 
Method Summary
 FilterList getFilterList()
           
static String getQueryFromFilterList(FilterList list)
           
 void group(org.apache.lucene.search.BooleanClause booleanClause)
          indicates the start of new group of queries.
 void prefixQuery(org.apache.lucene.search.PrefixQuery query, org.apache.lucene.search.BooleanClause booleanClause)
          handles a PrefixQuery.
 void rangeQuery(org.apache.lucene.search.TermRangeQuery query, org.apache.lucene.search.BooleanClause booleanClause)
          handles a TermRangeQuery.
 void termQuery(org.apache.lucene.search.TermQuery query, org.apache.lucene.search.BooleanClause booleanClause)
          handles a TermQuery.
 void ungroup()
          indicates the end of the current group.
 void wildcardQuery(org.apache.lucene.search.WildcardQuery query, org.apache.lucene.search.BooleanClause booleanClause)
          handles a WildcardQuery.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

filterListStack

protected Stack<FilterList> filterListStack
Constructor Detail

FilterListQueryHandler

public FilterListQueryHandler()
Method Detail

prefixQuery

public void prefixQuery(org.apache.lucene.search.PrefixQuery query,
                        org.apache.lucene.search.BooleanClause booleanClause)
Description copied from interface: QueryHandler
handles a PrefixQuery.

Specified by:
prefixQuery in interface QueryHandler

termQuery

public void termQuery(org.apache.lucene.search.TermQuery query,
                      org.apache.lucene.search.BooleanClause booleanClause)
Description copied from interface: QueryHandler
handles a TermQuery.

Specified by:
termQuery in interface QueryHandler

rangeQuery

public void rangeQuery(org.apache.lucene.search.TermRangeQuery query,
                       org.apache.lucene.search.BooleanClause booleanClause)
Description copied from interface: QueryHandler
handles a TermRangeQuery.

Specified by:
rangeQuery in interface QueryHandler

wildcardQuery

public void wildcardQuery(org.apache.lucene.search.WildcardQuery query,
                          org.apache.lucene.search.BooleanClause booleanClause)
Description copied from interface: QueryHandler
handles a WildcardQuery.

Specified by:
wildcardQuery in interface QueryHandler

group

public void group(org.apache.lucene.search.BooleanClause booleanClause)
Description copied from interface: QueryHandler
indicates the start of new group of queries.

Specified by:
group in interface QueryHandler

ungroup

public void ungroup()
Description copied from interface: QueryHandler
indicates the end of the current group.

Specified by:
ungroup in interface QueryHandler

getFilterList

public FilterList getFilterList()

getQueryFromFilterList

public static String getQueryFromFilterList(FilterList list)


Copyright © 2009-2010 JurisMarches. All Rights Reserved.