org.ceryle.wiki.plugin.assertion
Class Predicate
java.lang.Object
org.ceryle.wiki.plugin.query.operators.Operator
org.ceryle.wiki.plugin.assertion.Predicate
public class Predicate
- extends Operator
The generalized Predicate Operator, a component of a query expression.
This returns true if the predicate exists and is a known WikiVerb.
- Author:
- Murray Altheim
PROPERTY_NAME
public static final String PROPERTY_NAME
- The canonical name of the predicate used for property assignments.
The value is "HasProperty".
- See Also:
- Constant Field Values
PROPERTY_ASSIGNMENT
public static final Predicate PROPERTY_ASSIGNMENT
- The Predicate constant used for property assignment.
Predicate
public Predicate(String name)
isInfix
public boolean isInfix()
- Overrides:
isInfix in class Operator
getPageName
public String getPageName()
- Returns the name of this Predicate (returns the same thing as
both
Operator.getName() and Operator.toString()). This is made
available simply for consistency with the same-named method in Term.
evaluateOperator
public boolean evaluateOperator(Operand left,
Operand right,
Modifier modifier,
ReferenceInfoProvider refInfoProvider,
String pageName)
throws QueryException
- Specified by:
evaluateOperator in class Operator
- Throws:
QueryException
The Ceryle Project. Copyright ©2001-2007 Murray Altheim, All Rights Reserved. See LICENSE included with distribution.