gate.jape.constraint
Class LesserPredicate

java.lang.Object
  extended by gate.jape.constraint.AbstractConstraintPredicate
      extended by gate.jape.constraint.ComparablePredicate
          extended by gate.jape.constraint.LesserPredicate
All Implemented Interfaces:
ConstraintPredicate, Serializable

public class LesserPredicate
extends ComparablePredicate

See Also:
Serialized Form

Field Summary
 
Fields inherited from class gate.jape.constraint.ComparablePredicate
comparableValue
 
Fields inherited from class gate.jape.constraint.AbstractConstraintPredicate
accessor, value
 
Fields inherited from interface gate.jape.constraint.ConstraintPredicate
EQUAL, GREATER, GREATER_OR_EQUAL, LESSER, LESSER_OR_EQUAL, NOT_EQUAL, NOT_REGEXP_FIND, NOT_REGEXP_MATCH, REGEXP_FIND, REGEXP_MATCH
 
Constructor Summary
LesserPredicate()
           
 
Method Summary
protected  boolean doMatch(Object annotValue)
          Check if passed value is less than stored value using Comparable operations.
 String getOperator()
          String representation of the logic operator that the predicate implements.
 
Methods inherited from class gate.jape.constraint.ComparablePredicate
compareValue, doMatch, setValue
 
Methods inherited from class gate.jape.constraint.AbstractConstraintPredicate
equals, getAccessor, getValue, hashCode, matches, setAccessor, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LesserPredicate

public LesserPredicate()
Method Detail

getOperator

public String getOperator()
Description copied from interface: ConstraintPredicate
String representation of the logic operator that the predicate implements.


doMatch

protected boolean doMatch(Object annotValue)
                   throws JapeException
Check if passed value is less than stored value using Comparable operations. Will attempt to do basic type conversion between the values. Returns false if passed value is null.

Specified by:
doMatch in class ComparablePredicate
Throws:
JapeException