opennlp.uima.util
Class ContainingConstraint

java.lang.Object
  extended by 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:
Serialized Form

Constructor Summary
ContainingConstraint()
          Initializes a new instance.
ContainingConstraint(org.apache.uima.cas.text.AnnotationFS containingAnnotation)
          Initializes a new instance.
 
Method Summary
 boolean match(org.apache.uima.cas.FeatureStructure featureStructure)
          Checks if the given FeatureStructure match the constraint.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContainingConstraint

public ContainingConstraint()
Initializes a new instance.


ContainingConstraint

public ContainingConstraint(org.apache.uima.cas.text.AnnotationFS containingAnnotation)
Initializes a new instance.

Parameters:
containingAnnotation -
Method Detail

match

public boolean match(org.apache.uima.cas.FeatureStructure featureStructure)
Checks if the given FeatureStructure match the constraint.

Specified by:
match in interface org.apache.uima.cas.FSMatchConstraint


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.