|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.uima.annotator.regex.impl.Annotation_impl
public class Annotation_impl
Implementation of an RegEx Annotation definition
| Constructor Summary | |
|---|---|
Annotation_impl(String annotId,
String annotType,
Position begin,
Position end,
String validationClass)
|
|
| Method Summary | |
|---|---|
void |
addFeature(Feature aFeature)
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. |
void |
initialize()
initialize the Regex Annotation object with all the annotation features |
String |
toString()
|
void |
typeInit(org.apache.uima.cas.TypeSystem ts)
|
boolean |
validate(String coveredText,
String ruleID)
Validate the covered Text of the annotation and checks if the annotation is valid or not. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Annotation_impl(String annotId,
String annotType,
Position begin,
Position end,
String validationClass)
annotId - annotType - begin - end - | Method Detail |
|---|
public org.apache.uima.cas.Type getAnnotationType()
Annotation
getAnnotationType in interface Annotationpublic Position getBegin()
Annotation
getBegin in interface Annotationpublic Position getEnd()
Annotation
getEnd in interface Annotationpublic String getId()
Annotation
getId in interface Annotationpublic void addFeature(Feature aFeature)
Annotation
addFeature in interface AnnotationaFeature - The feature to be added.public Feature[] getFeatures()
Annotation
getFeatures in interface Annotation
public boolean validate(String coveredText,
String ruleID)
throws Exception
Annotation
validate in interface AnnotationcoveredText - covered text of the annotation that should be createdruleID - ruleID (if specified) of the rule that created the match
Exceptionpublic boolean hasValidator()
Annotation
hasValidator in interface Annotation
public void typeInit(org.apache.uima.cas.TypeSystem ts)
throws org.apache.uima.resource.ResourceInitializationException
ts -
org.apache.uima.resource.ResourceInitializationException
public void initialize()
throws RegexAnnotatorConfigException
RegexAnnotatorConfigExceptionpublic String toString()
toString in class Object
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||