gate.jape.constraint
Class WithinPredicate

java.lang.Object
  extended by gate.jape.constraint.AbstractConstraintPredicate
      extended by gate.jape.constraint.EmbeddedConstraintPredicate
          extended by gate.jape.constraint.WithinPredicate
All Implemented Interfaces:
ConstraintPredicate, Serializable
Direct Known Subclasses:
NotWithinPredicate

public class WithinPredicate
extends EmbeddedConstraintPredicate

Returns true if the given annotation is entirely spanned by an annotation of the type set in value.

See Also:
Serialized Form

Field Summary
static String OPERATOR
           
 
Fields inherited from class gate.jape.constraint.EmbeddedConstraintPredicate
annotType, valueConstraint
 
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
WithinPredicate()
           
 
Method Summary
 AnnotationSet doMatch(Annotation annot, AnnotationSet as)
          Get all the annots of the right type that completely span the length of the test annot
 String getOperator()
          String representation of the logic operator that the predicate implements.
 
Methods inherited from class gate.jape.constraint.EmbeddedConstraintPredicate
doMatch, equals, filterMatches, getAnnotType, hashCode, setValue, toString
 
Methods inherited from class gate.jape.constraint.AbstractConstraintPredicate
getAccessor, getValue, matches, setAccessor
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

OPERATOR

public static final String OPERATOR
See Also:
Constant Field Values
Constructor Detail

WithinPredicate

public WithinPredicate()
Method Detail

getOperator

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


doMatch

public AnnotationSet doMatch(Annotation annot,
                             AnnotationSet as)
Get all the annots of the right type that completely span the length of the test annot

Specified by:
doMatch in class EmbeddedConstraintPredicate