|
||||||||||
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(java.lang.String annotId,
java.lang.String annotType,
Position begin,
Position end,
java.lang.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 |
java.lang.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 |
java.lang.String |
toString()
|
void |
typeInit(org.apache.uima.cas.TypeSystem ts)
|
boolean |
validate(java.lang.String coveredText,
java.lang.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(java.lang.String annotId, java.lang.String annotType, Position begin, Position end, java.lang.String validationClass)
annotId
- annotType
- begin
- end
- Method Detail |
---|
public org.apache.uima.cas.Type getAnnotationType()
Annotation
getAnnotationType
in interface Annotation
public Position getBegin()
Annotation
getBegin
in interface Annotation
public Position getEnd()
Annotation
getEnd
in interface Annotation
public java.lang.String getId()
Annotation
getId
in interface Annotation
public void addFeature(Feature aFeature)
Annotation
addFeature
in interface Annotation
aFeature
- The feature to be added.public Feature[] getFeatures()
Annotation
getFeatures
in interface Annotation
public boolean validate(java.lang.String coveredText, java.lang.String ruleID) throws java.lang.Exception
Annotation
validate
in interface Annotation
coveredText
- covered text of the annotation that should be createdruleID
- ruleID (if specified) of the rule that created the match
java.lang.Exception
public 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
RegexAnnotatorConfigException
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |