public class SourceDocumentInformation extends Annotation
| Modifier and Type | Field and Description |
|---|---|
static int |
type |
static int |
typeIndexID |
| Modifier | Constructor and Description |
|---|---|
protected |
SourceDocumentInformation()
Never called.
|
|
SourceDocumentInformation(int addr,
TOP_Type type)
Internal - constructor used by generator
|
|
SourceDocumentInformation(JCas jcas) |
|
SourceDocumentInformation(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()
used to obtain reference to the TOP_Type instance
|
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, 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 SourceDocumentInformation()
public SourceDocumentInformation(int addr,
TOP_Type type)
addr - -type - -public SourceDocumentInformation(JCas jcas)
jcas - -public SourceDocumentInformation(JCas jcas, int begin, int end)
jcas - -begin - -end - -public int getTypeIndexID()
TOPgetTypeIndexID in class 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–2021 The Apache Software Foundation. All rights reserved.