|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.uima.cas.impl.FeatureStructureImpl
org.apache.uima.jcas.cas.TOP
org.apache.uima.jcas.cas.AnnotationBase
org.apache.uima.jcas.tcas.Annotation
public class Annotation
the JCas class model for the CAS type uima.cas.Annotation. It defines two integer valued features indicating the begin and end of the span being annotated. There is also a method to retrieve the spanned text as a string.
| Field Summary | |
|---|---|
static int |
type
|
static int |
typeIndexID
|
| Fields inherited from class org.apache.uima.jcas.cas.TOP |
|---|
addr, jcasType |
| Constructor Summary | |
|---|---|
protected |
Annotation()
|
|
Annotation(int addr,
TOP_Type type)
Internal - Constructor used by generator |
|
Annotation(JCas jcas)
|
|
Annotation(JCas jcas,
int begin,
int end)
Constructor with begin and end passed as arguments |
| Method Summary | |
|---|---|
int |
getBegin()
getter for begin - gets beginning of span of annotation |
String |
getCoveredText()
Get the text covered by an annotation as a string. |
int |
getEnd()
getter for end - gets ending of span of annotation |
int |
getStart()
Deprecated. |
int |
getTypeIndexID()
used to obtain reference to the TOP_Type instance |
void |
setBegin(int v)
setter for begin - sets beginning of span of annotation |
void |
setEnd(int v)
setter for end - sets ending of span of annotation |
| Methods inherited from class org.apache.uima.jcas.cas.AnnotationBase |
|---|
getSofa, getView |
| Methods inherited from class org.apache.uima.jcas.cas.TOP |
|---|
addToIndexes, addToIndexes, equals, getAddress, getCAS, getCASImpl, getLowLevelCas, hashCode, removeFromIndexes, removeFromIndexes |
| Methods inherited from class org.apache.uima.cas.impl.FeatureStructureImpl |
|---|
clone, getBooleanValue, getByteValue, getDoubleValue, getFeatureValue, getFeatureValueAsString, getFloatValue, getIntValue, getLongValue, getShortValue, getStringValue, getType, prettyPrint, prettyPrint, prettyPrint, setBooleanValue, setByteValue, setDoubleValue, setFeatureValue, setFeatureValueFromString, setFloatValue, setIntValue, setLongValue, setShortValue, setStringValue, toString, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.uima.cas.AnnotationBaseFS |
|---|
getView |
| Methods inherited from interface org.apache.uima.cas.FeatureStructure |
|---|
clone, equals, getBooleanValue, getByteValue, getCAS, getDoubleValue, getFeatureValue, getFeatureValueAsString, getFloatValue, getIntValue, getLongValue, getShortValue, getStringValue, getType, hashCode, setBooleanValue, setByteValue, setDoubleValue, setFeatureValue, setFeatureValueFromString, setFloatValue, setIntValue, setLongValue, setShortValue, setStringValue |
| Field Detail |
|---|
public static final int typeIndexID
public static final int type
| Constructor Detail |
|---|
protected Annotation()
public Annotation(int addr,
TOP_Type type)
public Annotation(JCas jcas)
public Annotation(JCas jcas,
int begin,
int end)
| Method Detail |
|---|
public int getTypeIndexID()
TOP
getTypeIndexID in class AnnotationBasepublic int getBegin()
getBegin in interface AnnotationFSpublic void setBegin(int v)
public int getEnd()
getEnd in interface AnnotationFSpublic void setEnd(int v)
public String getCoveredText()
AnnotationFSdocText is your document
text and annot an annotation, then
annot.getCoveredText().equals(docText.substring(annot.getBegin(),
annot.getEnd())).
getCoveredText in interface AnnotationFSAnnotationFS.getCoveredText()@Deprecated public int getStart()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||