public class DocumentAnnotation extends Annotation
DocumentAnnotation type. When text CASs are
created, one instance of this type is created and made accessible via a call to the
JCas.getDocumentAnnotationFs() method. It is also a subtype of Annotation and
therefore would appear as one of the annotations that an iterator over all the annotations would
return.| Modifier and Type | Field and Description |
|---|---|
static int |
type |
static int |
typeIndexID |
| Modifier | Constructor and Description |
|---|---|
protected |
DocumentAnnotation() |
|
DocumentAnnotation(int addr,
TOP_Type type) |
|
DocumentAnnotation(JCas jcas) |
| Modifier and Type | Method and Description |
|---|---|
String |
getLanguage()
getter for language
|
int |
getTypeIndexID()
used to obtain reference to the TOP_Type instance
|
void |
setLanguage(String v)
setter for language
|
getBegin, getCoveredText, getEnd, getStart, setBegin, setEndgetSofa, getViewaddToIndexes, addToIndexes, equals, getAddress, getCAS, getCASImpl, getLowLevelCas, hashCode, removeFromIndexes, removeFromIndexesclone, getavoidcollisionTypeCode, 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 DocumentAnnotation()
public DocumentAnnotation(int addr,
TOP_Type type)
public DocumentAnnotation(JCas jcas)
public int getTypeIndexID()
TOPgetTypeIndexID in class Annotationpublic String getLanguage()
public void setLanguage(String v)
v - the languageCopyright © 2006–2021 The Apache Software Foundation. All rights reserved.