org.ceryle.wiki.plugin.query
Class QueryItem
java.lang.Object
org.ceryle.wiki.plugin.query.QueryItem
public class QueryItem
- extends Object
Javadoc: TODO.
- Author:
- John Volkar (john.volkar at gmail.com)
|
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NULL
public static final QueryItem NULL
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 -
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.