Package opennlp.uima.util
Class ContainingConstraint
java.lang.Object
opennlp.uima.util.ContainingConstraint
- All Implemented Interfaces:
Serializable
,org.apache.uima.cas.FSConstraint
,org.apache.uima.cas.FSMatchConstraint
public final class ContainingConstraint
extends Object
implements org.apache.uima.cas.FSMatchConstraint
Checks if an
AnnotationFS
is contained by the given AnnotationFS.- See Also:
-
Constructor Summary
ConstructorDescriptionInitializes aContainingConstraint
.ContainingConstraint
(org.apache.uima.cas.text.AnnotationFS containingAnnotation) Initializes aContainingConstraint
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
match
(org.apache.uima.cas.FeatureStructure featureStructure) Checks if the givenFeatureStructure
matches the constraint.
-
Constructor Details
-
ContainingConstraint
public ContainingConstraint()Initializes aContainingConstraint
. -
ContainingConstraint
public ContainingConstraint(org.apache.uima.cas.text.AnnotationFS containingAnnotation) Initializes aContainingConstraint
.- Parameters:
containingAnnotation
- TheAnnotationFS
to initialize with.
-
-
Method Details
-
match
public boolean match(org.apache.uima.cas.FeatureStructure featureStructure) Checks if the givenFeatureStructure
matches the constraint.- Specified by:
match
in interfaceorg.apache.uima.cas.FSMatchConstraint
-