|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.uima.cas.impl.FeatureStructureImpl org.apache.uima.jcas.cas.TOP org.apache.uima.jcas.cas.AnnotationBase org.apache.uima.jcas.tcas.Annotation org.apache.uima.examples.SourceDocumentInformation
public class SourceDocumentInformation
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 XML source: C:/alally/dev/workspace_apache/uimaj-examples/src/main/resources/org/apache/uima/examples/SourceDocumentInformation.xml
Field Summary | |
---|---|
static int |
type
|
static int |
typeIndexID
|
Fields inherited from class org.apache.uima.jcas.cas.TOP |
---|
addr, jcasType |
Constructor Summary | |
---|---|
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)
|
Method Summary | |
---|---|
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. |
Methods inherited from class org.apache.uima.jcas.tcas.Annotation |
---|
getBegin, getCoveredText, getEnd, getStart, setBegin, setEnd |
Methods inherited from class org.apache.uima.jcas.cas.AnnotationBase |
---|
getSofa, getView |
Methods inherited from class org.apache.uima.jcas.cas.TOP |
---|
addToIndexes, addToIndexes, equals, getAddress, getCAS, getCASImpl, getLowLevelCas, hashCode, removeFromIndexes, removeFromIndexes |
Methods inherited from class org.apache.uima.cas.impl.FeatureStructureImpl |
---|
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 |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.uima.cas.AnnotationBaseFS |
---|
getView |
Methods inherited from interface org.apache.uima.cas.FeatureStructure |
---|
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 |
Field Detail |
---|
public static final int typeIndexID
public static final int type
Constructor Detail |
---|
protected SourceDocumentInformation()
public SourceDocumentInformation(int addr, TOP_Type type)
public SourceDocumentInformation(JCas jcas)
public SourceDocumentInformation(JCas jcas, int begin, int end)
Method Detail |
---|
public int getTypeIndexID()
TOP
getTypeIndexID
in class Annotation
public String getUri()
public void setUri(String v)
public int getOffsetInSource()
public void setOffsetInSource(int v)
public int getDocumentSize()
public void setDocumentSize(int v)
public boolean getLastSegment()
public void setLastSegment(boolean v)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |