public class Annotation extends AnnotationBase implements AnnotationFS
| Modifier and Type | Field and Description |
|---|---|
static int |
type |
static int |
typeIndexID |
| Modifier | Constructor and Description |
|---|---|
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
|
| Modifier and Type | Method and Description |
|---|---|
int |
getBegin()
getter for begin - gets beginning of span of annotation
|
java.lang.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
|
getSofa, getViewaddToIndexes, addToIndexes, equals, getAddress, getCAS, getCASImpl, getLowLevelCas, hashCode, removeFromIndexes, removeFromIndexesclone, 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, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitgetViewclone, equals, getBooleanValue, getByteValue, getCAS, getDoubleValue, getFeatureValue, getFeatureValueAsString, getFloatValue, getIntValue, getLongValue, getShortValue, getStringValue, getType, hashCode, setBooleanValue, setByteValue, setDoubleValue, setFeatureValue, setFeatureValueFromString, setFloatValue, setIntValue, setLongValue, setShortValue, setStringValueprotected Annotation()
public Annotation(int addr,
TOP_Type type)
public Annotation(JCas jcas)
public Annotation(JCas jcas, int begin, int end)
public int getTypeIndexID()
TOPgetTypeIndexID 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 java.lang.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()
Copyright © 2013. All Rights Reserved.