Class ContainingConstraint

java.lang.Object
org.apache.uima.caseditor.editor.util.ContainingConstraint
All Implemented Interfaces:
Serializable, FSConstraint, FSMatchConstraint

public class ContainingConstraint extends Object implements FSMatchConstraint
Filters out all annotations which are not contained by one of the provided annotations.
See Also:
  • Constructor Details

    • ContainingConstraint

      public ContainingConstraint()
  • Method Details

    • add

      public void add(AnnotationFS containingAnnotation)
      Adds an annotation in which the an other annotations must be contained to match this constraint.
      Parameters:
      containingAnnotation - the containing annotation
    • match

      public boolean match(FeatureStructure featureStructure)
      Checks if the given FeatureStructure is inside the a containing annotation.
      Specified by:
      match in interface FSMatchConstraint
      Parameters:
      featureStructure - the feature structure
      Returns:
      true, if successful