public class SourceDocumentInformation extends Annotation
FeatureStructureImplC.PrintReferences
Modifier and Type | Field and Description |
---|---|
static String |
_FeatName_documentSize |
static String |
_FeatName_lastSegment |
static String |
_FeatName_offsetInSource |
static String |
_FeatName_uri |
static String |
_TypeName |
static int |
type |
static int |
typeIndexID |
_FeatName_begin, _FeatName_end
_FeatName_sofa
_singleton
_casView, _id, DISABLE_RUNTIME_FEATURE_VALIDATION, DISABLE_RUNTIME_FEATURE_VALUE_VALIDATION, IS_ENABLE_RUNTIME_FEATURE_VALIDATION, IS_ENABLE_RUNTIME_FEATURE_VALUE_VALIDATION, IS_V2_PRETTY_PRINT, V2_PRETTY_PRINT
Modifier | Constructor and Description |
---|---|
protected |
SourceDocumentInformation()
Never called.
|
|
SourceDocumentInformation(JCas jcas) |
|
SourceDocumentInformation(JCas jcas,
int begin,
int end) |
|
SourceDocumentInformation(TypeImpl type,
CASImpl casImpl)
Internal - constructor used by generator
|
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.
|
compareAnnotation, compareAnnotation, compareAnnotationWithId, compareAnnotationWithId, getBegin, getCoveredText, getEnd, getStart, setBegin, setEnd, trim
getSofa, getView, setFeatureValue
_createJCasHashMapReserve, _createSearchKey
_copyIntAndRefArraysEqTypesFrom, _copyIntAndRefArraysFrom, _copyIntArrayEqTypesFrom, _getBooleanValueNc, _getBooleanValueNc, _getByteValueNc, _getByteValueNc, _getDoubleValueNc, _getDoubleValueNc, _getFeatFromAdjOffset, _getFeatureValueNc, _getFeatureValueNc, _getFloatValueNc, _getFloatValueNc, _getIntLikeValue, _getIntValueNc, _getIntValueNc, _getLongValueNc, _getLongValueNc, _getRefValueCommon, _getShortValueNc, _getShortValueNc, _getStringValueNc, _getStringValueNc, _getTypeCode, _getTypeImpl, _getView, _id, _inSetSortedIndex, _isJCasHashMapReserve, _isPearTrampoline, _maybeGetBaseForPearFs, _maybeGetBaseForPearFs, _maybeGetPearFs, _maybeGetPearFs, _resetInSetSortedIndex, _setBooleanValueNcNj, _setBooleanValueNcNj, _setBooleanValueNfc, _setByteValueNcNj, _setByteValueNcNj, _setByteValueNfc, _setDoubleValueNcNj, _setDoubleValueNcNj, _setDoubleValueNfc, _setFeatureValueNcNj, _setFeatureValueNcNj, _setFeatureValueNcWj, _setFloatValueNcNj, _setFloatValueNcNj, _setFloatValueNfc, _setInSetSortedIndexed, _setIntLikeValue, _setIntLikeValueNcNj, _setIntValueCJ, _setIntValueNcNj, _setIntValueNcNj, _setIntValueNfc, _setIntValueNfcCJ, _setJCasHashMapReserve, _setLongValueCJ, _setLongValueNcNj, _setLongValueNcNj, _setLongValueNfc, _setLongValueNfcCJ, _setPearTrampoline, _setRefValueCJ, _setRefValueCommon, _setRefValueCommonWj, _setRefValueNfcCJ, _setShortValueNcNj, _setShortValueNcNj, _setShortValueNfc, _setStringValueNcNj, _setStringValueNcWj, _setStringValueNfc, _setTypeImpl, addStringOrPrimitive, addToIndexes, addToIndexes, addToIndexes, clone, compare, equals, getAddress, getBooleanValue, getByteValue, getCAS, getCASImpl, getDoubleValue, getFeatureValue, getFeatureValueAsString, getFloatValue, getIntValue, getLongValue, getLowLevelCas, getShortValue, getStringValue, getType, hashCode, prettyPrint, prettyPrint, prettyPrint, prettyPrint, prettyPrint, prettyPrint, prettyPrintShort, removeFromIndexes, removeFromIndexes, removeFromIndexes, setBooleanValue, setByteValue, setDoubleValue, setFeatureValueFromString, setFloatValue, setIntValue, setLongValue, setShortValue, setStringValue, toShortString, toString, toString, wrapGetIntCatchException
finalize, getClass, notify, notifyAll, wait, wait, wait
coveredBy, coveredBy, covering, covering, following, following, overlapping, overlapping, overlappingAtBegin, overlappingAtBegin, overlappingAtEnd, overlappingAtEnd, preceding, preceding, trim
getView
_getTypeCode, _id, clone, equals, getAddress, getBooleanValue, getByteValue, getCAS, getDoubleValue, getFeatureValue, getFeatureValueAsString, getFloatValue, getIntValue, getJCas, getLongValue, getShortValue, getStringValue, getType, hashCode, setBooleanValue, setByteValue, setDoubleValue, setFeatureValue, setFeatureValueFromString, setFloatValue, setIntValue, setLongValue, setShortValue, setStringValue
prettyPrint, prettyPrint, prettyPrint, prettyPrint, toString
public static final String _TypeName
public static final int typeIndexID
public static final int type
public static final String _FeatName_uri
public static final String _FeatName_offsetInSource
public static final String _FeatName_documentSize
public static final String _FeatName_lastSegment
protected SourceDocumentInformation()
public SourceDocumentInformation(TypeImpl type, CASImpl casImpl)
casImpl
- the CAS this Feature Structure belongs totype
- the type of this Feature Structurepublic SourceDocumentInformation(JCas jcas)
jcas
- JCas to which this Feature Structure belongspublic SourceDocumentInformation(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 Annotation
public String getUri()
public void setUri(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 featureCopyright © 2006–2021 The Apache Software Foundation. All rights reserved.