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, setEnd
getSofa, getView
addToIndexes, addToIndexes, equals, getAddress, getCAS, getCASImpl, getLowLevelCas, hashCode, removeFromIndexes, removeFromIndexes
clone, 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, 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 DocumentAnnotation()
public DocumentAnnotation(int addr, TOP_Type type)
public DocumentAnnotation(JCas jcas)
public int getTypeIndexID()
TOP
getTypeIndexID
in class Annotation
public String getLanguage()
public void setLanguage(String v)
v
- the languageCopyright © 2006–2017 The Apache Software Foundation. All rights reserved.