Class ContainingConstraint
java.lang.Object
org.apache.uima.caseditor.editor.util.ContainingConstraint
- All Implemented Interfaces:
Serializable
,FSConstraint
,FSMatchConstraint
Filters out all annotations which are not contained by one of the provided annotations.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(AnnotationFS containingAnnotation) Adds an annotation in which the an other annotations must be contained to match this constraint.boolean
match
(FeatureStructure featureStructure) Checks if the given FeatureStructure is inside the a containing annotation.
-
Constructor Details
-
ContainingConstraint
public ContainingConstraint()
-
-
Method Details
-
add
Adds an annotation in which the an other annotations must be contained to match this constraint.- Parameters:
containingAnnotation
- the containing annotation
-
match
Checks if the given FeatureStructure is inside the a containing annotation.- Specified by:
match
in interfaceFSMatchConstraint
- Parameters:
featureStructure
- the feature structure- Returns:
- true, if successful
-