org.ceryle.wiki.plugin.assertion
Class Predicate

java.lang.Object
  extended by org.ceryle.wiki.plugin.query.operators.Operator
      extended by 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

Field Summary
static Predicate PROPERTY_ASSIGNMENT
          The Predicate constant used for property assignment.
static String PROPERTY_NAME
          The canonical name of the predicate used for property assignments.
 
Fields inherited from class org.ceryle.wiki.plugin.query.operators.Operator
_ALL, _AND, _ANY, _BY, _FROM, _IS, _NOT, _NULL, _OR, _TO
 
Constructor Summary
Predicate(String name)
           
 
Method Summary
 boolean evaluateOperator(Operand left, Operand right, Modifier modifier, ReferenceInfoProvider refInfoProvider, String pageName)
           
 String getPageName()
          Returns the name of this Predicate (returns the same thing as both Operator.getName() and Operator.toString()).
 boolean isInfix()
           
 
Methods inherited from class org.ceryle.wiki.plugin.query.operators.Operator
getName, isPrefix, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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.

Constructor Detail

Predicate

public Predicate(String name)
Method Detail

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.