Package org.apache.uima.examples
Class SourceDocumentInformation_Type
java.lang.Object
org.apache.uima.jcas.cas.TOP_Type
org.apache.uima.jcas.cas.AnnotationBase_Type
org.apache.uima.jcas.tcas.Annotation_Type
org.apache.uima.examples.SourceDocumentInformation_Type
Stores detailed information about the original source document from which the current CAS was
initialized. All information (like size) refers to the source document and not to the document in
the CAS which may be converted and filtered by a CAS Initializer. For example this information
will be written to the Semantic Search index so that the original document contents can be
retrieved by queries. Updated by JCasGen Wed Nov 22 16:51:13 EST 2006
-
Field Summary
FieldsFields inherited from class org.apache.uima.jcas.cas.TOP_Type
casImpl, casType, casTypeCode, instanceOf_Type, jcas, ll_cas, lowLevelArrayBoundChecks, lowLevelTypeChecks, useExistingInstance
-
Constructor Summary
ConstructorsConstructorDescriptionSourceDocumentInformation_Type
(JCas jcas, Type casType) initialize variables to correspond with Cas Type and Features -
Method Summary
Modifier and TypeMethodDescriptionint
getDocumentSize
(int addr) protected FSGenerator
boolean
getLastSegment
(int addr) int
getOffsetInSource
(int addr) getUri
(int addr) void
setDocumentSize
(int addr, int v) void
setLastSegment
(int addr, boolean v) void
setOffsetInSource
(int addr, int v) void
Methods inherited from class org.apache.uima.jcas.tcas.Annotation_Type
getBegin, getCoveredText, getEnd, setBegin, setEnd
Methods inherited from class org.apache.uima.jcas.cas.AnnotationBase_Type
getSofa, getView
Methods inherited from class org.apache.uima.jcas.cas.TOP_Type
addToIndexes, checkType, getTypeIndexID, invalidTypeArg, noObjCreate, removeFromIndexes
-
Field Details
-
typeIndexID
public static final int typeIndexID -
featOkTst
public static final boolean featOkTst
-
-
Constructor Details
-
SourceDocumentInformation_Type
initialize variables to correspond with Cas Type and Features- Parameters:
jcas
- -casType
- -
-
-
Method Details
-
getFSGenerator
- Overrides:
getFSGenerator
in classAnnotation_Type
-
getUri
- Parameters:
addr
- -- Returns:
- the Uri
-
setUri
- Parameters:
addr
- -v
- the Uri
-
getOffsetInSource
public int getOffsetInSource(int addr) - Parameters:
addr
- -- Returns:
- -
-
setOffsetInSource
public void setOffsetInSource(int addr, int v) - Parameters:
addr
- -v
- -
-
getDocumentSize
public int getDocumentSize(int addr) - Parameters:
addr
- -- Returns:
- -
-
setDocumentSize
public void setDocumentSize(int addr, int v) - Parameters:
addr
- -v
- the document size
-
getLastSegment
public boolean getLastSegment(int addr) - Parameters:
addr
- -- Returns:
- true if it is last segment
-
setLastSegment
public void setLastSegment(int addr, boolean v) - Parameters:
addr
- -v
- true if last segment
-