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, getView
addToIndexes, addToIndexes, equals, getAddress, getCAS, getCASImpl, getLowLevelCas, hashCode, removeFromIndexes, removeFromIndexes
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
finalize, getClass, notify, notifyAll, wait, wait, wait
getView
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
protected Annotation()
public Annotation(int addr, TOP_Type type)
public Annotation(JCas jcas)
public Annotation(JCas jcas, int begin, int end)
public int getTypeIndexID()
TOP
getTypeIndexID
in class AnnotationBase
public int getBegin()
getBegin
in interface AnnotationFS
public void setBegin(int v)
public int getEnd()
getEnd
in interface AnnotationFS
public void setEnd(int v)
public java.lang.String getCoveredText()
AnnotationFS
docText
is your document
text and annot
an annotation, then
annot.getCoveredText().equals(docText.substring(annot.getBegin(),
annot.getEnd()))
.getCoveredText
in interface AnnotationFS
AnnotationFS.getCoveredText()
@Deprecated public int getStart()
Copyright © 2013. All Rights Reserved.