public interface Annotation
Modifier and Type | Method and Description |
---|---|
void |
addFeature(Feature aFeat)
Adds the given feature to this annotation.
|
org.apache.uima.cas.Type |
getAnnotationType()
Get the annotation type of this annotation.
|
Position |
getBegin()
Get the annotation begin position of this annotation.
|
Position |
getEnd()
Get the annotation end position of this annotation.
|
Feature[] |
getFeatures()
Returns the feature array for this annotation
|
String |
getId()
Get the annotation identifier.
|
boolean |
hasValidator()
Returns true if for the current annotation an validator is available.
|
boolean |
validate(String coveredText,
String ruleID)
Validate the covered Text of the annotation and checks if the annotation
is valid or not.
|
String getId()
org.apache.uima.cas.Type getAnnotationType()
Position getBegin()
Position getEnd()
void addFeature(Feature aFeat)
aFeat
- The feature to be added.Feature[] getFeatures()
boolean validate(String coveredText, String ruleID) throws Exception
coveredText
- covered text of the annotation that should be createdruleID
- ruleID (if specified) of the rule that created the matchException
boolean hasValidator()
Copyright © 2006–2021 The Apache Software Foundation. All rights reserved.