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() |
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(String v)
setter for uri - sets URI of document.
|
getBegin, getCoveredText, getEnd, getStart, setBegin, setEndaddToIndexes, 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, waitclone, equals, getBooleanValue, getByteValue, getCAS, getDoubleValue, getFeatureValue, getFeatureValueAsString, getFloatValue, getIntValue, getLongValue, getShortValue, getStringValue, getType, hashCode, setBooleanValue, setByteValue, setDoubleValue, setFeatureValue, setFeatureValueFromString, setFloatValue, setIntValue, setLongValue, setShortValue, setStringValueprotected SourceDocumentInformation()
public SourceDocumentInformation(int addr,
org.apache.uima.jcas.cas.TOP_Type type)
addr - -type - -public SourceDocumentInformation(org.apache.uima.jcas.JCas jcas)
jcas - -public SourceDocumentInformation(org.apache.uima.jcas.JCas jcas,
int begin,
int end)
jcas - -begin - -end - -public int getTypeIndexID()
getTypeIndexID in class org.apache.uima.jcas.tcas.Annotationpublic String getUri()
public void setUri(String v)
v - this document's Uripublic int getOffsetInSource()
public void setOffsetInSource(int v)
v - the byte offset of the start of the document within the originalpublic int getDocumentSize()
public void setDocumentSize(int v)
v - the document size in bytespublic boolean getLastSegment()
public void setLastSegment(boolean v)
v - true if this is the last segmentCopyright © 2006–2017 The Apache Software Foundation. All rights reserved.