org.ceryle.wiki.plugin.query
Class QueryItem

java.lang.Object
  extended by org.ceryle.wiki.plugin.query.QueryItem

public class QueryItem
extends Object

Javadoc: TODO.

Author:
John Volkar (john.volkar at gmail.com)

Field Summary
static QueryItem NULL
           
 
Constructor Summary
QueryItem(Expression e)
          Added so AndOperator and AnyOperator could construct sub-queries...
QueryItem(String queryString)
          Constructor, attempts to parse the queryString, if unparseable throws a RuntimeException.
 
Method Summary
protected  Set evaluateExpression(ReferenceInfoProvider refProvider, Collection pageSet)
           
 String getExpressionString()
           
 String getQueryString()
           
 Set getResults(ReferenceInfoProvider refProvider)
          Returns the results of the query as a Set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NULL

public static final QueryItem NULL
Constructor Detail

QueryItem

public QueryItem(String queryString)
          throws QueryException
Constructor, attempts to parse the queryString, if unparseable throws a RuntimeException.

Parameters:
queryString -
Throws:
QueryException

QueryItem

public QueryItem(Expression e)
Added so AndOperator and AnyOperator could construct sub-queries...

Parameters:
e -
Method Detail

getQueryString

public String getQueryString()

getExpressionString

public String getExpressionString()

getResults

public Set getResults(ReferenceInfoProvider refProvider)
               throws QueryException
Returns the results of the query as a Set.

Parameters:
refProvider - the ReferenceInfoProvider
Returns:
the query results as a Set
Throws:
QueryException

evaluateExpression

protected Set evaluateExpression(ReferenceInfoProvider refProvider,
                                 Collection pageSet)
                          throws QueryException
Parameters:
pageSet - Set of all pages to be evaluated.
Returns:
Non null list.
Throws:
QueryException


The Ceryle Project. Copyright ©2001-2007 Murray Altheim, All Rights Reserved. See LICENSE included with distribution.