org.ceryle.wiki.plugin.query.operators
Class FromModifier

java.lang.Object
  extended by org.ceryle.wiki.plugin.query.operators.Operator
      extended by org.ceryle.wiki.plugin.query.operators.FromModifier
All Implemented Interfaces:
Modifier

public class FromModifier
extends Operator
implements Modifier

The FROM Modifier (an Operator), a component of a query expression.

This class is equivalent to (and the replacement of) ByModifier. This is used so that the opposite of the "TO" term is "FROM" rather than "BY".

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

Field Summary
 
Fields inherited from class org.ceryle.wiki.plugin.query.operators.Operator
_ALL, _AND, _ANY, _BY, _FROM, _IS, _NOT, _NULL, _OR, _TO
 
Constructor Summary
FromModifier()
           
 
Method Summary
 boolean applyModifier(ReferenceInfoProvider refInfoProvider, String candidateName, String termName)
          Evaluates to true if candidateName is linked to by the termName.
 boolean evaluateOperator(Operand left, Operand right, Modifier modifier, ReferenceInfoProvider refInfoProvider, String pageName)
           
 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
 

Constructor Detail

FromModifier

public FromModifier()
Method Detail

isInfix

public boolean isInfix()
Overrides:
isInfix in class Operator

evaluateOperator

public boolean evaluateOperator(Operand left,
                                Operand right,
                                Modifier modifier,
                                ReferenceInfoProvider refInfoProvider,
                                String pageName)
                         throws QueryException
Specified by:
evaluateOperator in class Operator
Throws:
QueryException

applyModifier

public boolean applyModifier(ReferenceInfoProvider refInfoProvider,
                             String candidateName,
                             String termName)
Evaluates to true if candidateName is linked to by the termName.

Specified by:
applyModifier in interface Modifier
See Also:
Modifier.applyModifier(ReferenceInfoProvider, String, String)


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