gate.jape.constraint
Class ContainsPredicate

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

public class ContainsPredicate
extends EmbeddedConstraintPredicate

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

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
ContainsPredicate()
           
 
Method Summary
 AnnotationSet doMatch(Annotation annot, AnnotationSet as)
          Get all the annots of the right type that are within the span of this 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

ContainsPredicate

public ContainsPredicate()
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 are within the span of this annot.

Specified by:
doMatch in class EmbeddedConstraintPredicate