public class SourceDocumentInformation
extends org.apache.uima.jcas.tcas.Annotation
Modifier and Type | Field and Description |
---|---|
static int |
type |
static int |
typeIndexID |
Modifier | Constructor and Description |
---|---|
protected |
SourceDocumentInformation()
Never called.
|
|
SourceDocumentInformation(int addr,
org.apache.uima.jcas.cas.TOP_Type type)
Internal - constructor used by generator
|
|
SourceDocumentInformation(org.apache.uima.jcas.JCas jcas) |
|
SourceDocumentInformation(org.apache.uima.jcas.JCas jcas,
int begin,
int end) |
Modifier and Type | Method and Description |
---|---|
int |
getDocumentSize()
getter for documentSize - gets Size of original document in bytes before processing by CAS Initializer.
|
boolean |
getLastSegment()
getter for lastSegment - gets For a CAS that represents a segment of a larger source document, this flag indicates whether this CAS is the final segment of the source document.
|
int |
getOffsetInSource()
getter for offsetInSource - gets Byte offset of the start of document content within original source file or other input source.
|
int |
getTypeIndexID() |
java.lang.String |
getUri()
getter for uri - gets URI of document.
|
void |
setDocumentSize(int v)
setter for documentSize - sets Size of original document in bytes before processing by CAS Initializer.
|
void |
setLastSegment(boolean v)
setter for lastSegment - sets For a CAS that represents a segment of a larger source document, this flag indicates whether this CAS is the final segment of the source document.
|
void |
setOffsetInSource(int v)
setter for offsetInSource - sets Byte offset of the start of document content within original source file or other input source.
|
void |
setUri(java.lang.String v)
setter for uri - sets URI of document.
|
getBegin, getCoveredText, getEnd, getStart, setBegin, setEnd
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
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 SourceDocumentInformation()
public SourceDocumentInformation(int addr, org.apache.uima.jcas.cas.TOP_Type type)
addr
- low level Feature Structure referencetype
- the type of this Feature Structurepublic SourceDocumentInformation(org.apache.uima.jcas.JCas jcas)
jcas
- JCas to which this Feature Structure belongspublic SourceDocumentInformation(org.apache.uima.jcas.JCas jcas, int begin, int end)
jcas
- JCas to which this Feature Structure belongsbegin
- offset to the begin spot in the SofAend
- offset to the end spot in the SofApublic int getTypeIndexID()
getTypeIndexID
in class org.apache.uima.jcas.tcas.Annotation
public java.lang.String getUri()
public void setUri(java.lang.String v)
v
- value to set into the featurepublic int getOffsetInSource()
public void setOffsetInSource(int v)
v
- value to set into the featurepublic int getDocumentSize()
public void setDocumentSize(int v)
v
- value to set into the featurepublic boolean getLastSegment()
public void setLastSegment(boolean v)
v
- value to set into the feature