org.ceryle.wiki.plugin.query.operators
Class FromModifier
java.lang.Object
org.ceryle.wiki.plugin.query.operators.Operator
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)
FromModifier
public FromModifier()
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.