public class DocumentMetaData
extends org.apache.uima.jcas.tcas.DocumentAnnotation
Modifier and Type | Field and Description |
---|---|
static int |
type |
static int |
typeIndexID |
Modifier | Constructor and Description |
---|---|
protected |
DocumentMetaData()
Never called.
|
|
DocumentMetaData(int addr,
org.apache.uima.jcas.cas.TOP_Type type)
Internal - constructor used by generator
|
|
DocumentMetaData(org.apache.uima.jcas.JCas jcas) |
|
DocumentMetaData(org.apache.uima.jcas.JCas jcas,
int begin,
int end) |
Modifier and Type | Method and Description |
---|---|
static void |
copy(org.apache.uima.jcas.JCas aSourceView,
org.apache.uima.jcas.JCas aTargetView)
Copy the
DocumentMetaData annotation from one view to another. |
static DocumentMetaData |
create(org.apache.uima.cas.CAS aCas)
Create a new
DocumentMetaData annotation in the given CAS. |
static DocumentMetaData |
create(org.apache.uima.jcas.JCas aJcas)
Create a new
DocumentMetaData annotation in the given CAS. |
static DocumentMetaData |
get(org.apache.uima.cas.CAS aCas)
Get the
DocumentMetaData from the CAS. |
static DocumentMetaData |
get(org.apache.uima.jcas.JCas aJCas)
Get the
DocumentMetaData from the CAS. |
String |
getCollectionId()
getter for collectionId - gets The ID of the whole document collection.
|
String |
getDocumentBaseUri()
getter for documentBaseUri - gets Base URI of the document.
|
String |
getDocumentId()
getter for documentId - gets The id of the document.
|
String |
getDocumentTitle()
getter for documentTitle - gets The human readable title of the document.
|
String |
getDocumentUri()
getter for documentUri - gets The URI of the document.
|
boolean |
getIsLastSegment()
getter for isLastSegment - gets CAS de-multipliers need to know whether a CAS is the last
multiplied segment.
|
int |
getTypeIndexID() |
void |
setCollectionId(String v)
setter for collectionId - sets The ID of the whole document collection.
|
void |
setDocumentBaseUri(String v)
setter for documentBaseUri - sets Base URI of the document.
|
void |
setDocumentId(String v)
setter for documentId - sets The id of the document.
|
void |
setDocumentTitle(String v)
setter for documentTitle - sets The human readable title of the document.
|
void |
setDocumentUri(String v)
setter for documentUri - sets The URI of the document.
|
void |
setIsLastSegment(boolean v)
setter for isLastSegment - sets CAS de-multipliers need to know whether a CAS is the last
multiplied segment.
|
getBegin, getCoveredText, getEnd, getStart, setBegin, setEnd
addToIndexes, addToIndexes, equals, getAddress, getCAS, getCASImpl, getLowLevelCas, hashCode, removeFromIndexes, removeFromIndexes
clone, 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, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
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
protected DocumentMetaData()
public DocumentMetaData(int addr, org.apache.uima.jcas.cas.TOP_Type type)
addr
- low level Feature Structure referencetype
- the type of this Feature Structurepublic DocumentMetaData(org.apache.uima.jcas.JCas jcas)
jcas
- JCas to which this Feature Structure belongspublic DocumentMetaData(org.apache.uima.jcas.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 org.apache.uima.jcas.tcas.DocumentAnnotation
public String getDocumentTitle()
public void setDocumentTitle(String v)
v
- value to set into the featurepublic String getDocumentId()
public void setDocumentId(String v)
v
- value to set into the featurepublic String getDocumentUri()
public void setDocumentUri(String v)
v
- value to set into the featurepublic String getCollectionId()
public void setCollectionId(String v)
v
- value to set into the featurepublic String getDocumentBaseUri()
public void setDocumentBaseUri(String v)
v
- value to set into the featurepublic boolean getIsLastSegment()
public void setIsLastSegment(boolean v)
v
- value to set into the featurepublic static DocumentMetaData create(org.apache.uima.cas.CAS aCas) throws IllegalStateException, org.apache.uima.cas.CASException
DocumentMetaData
annotation in the given CAS. The meta data fields can
then be set on the returned object.aCas
- the CAS to create the meta data for.DocumentMetaData
annotation that has already been added to the CAS indexes.IllegalStateException
- if there is already a DocumentMetaData
annotationorg.apache.uima.cas.CASException
- if the JCas cannot be accessed from the provided CAS.public static DocumentMetaData create(org.apache.uima.jcas.JCas aJcas) throws IllegalStateException
DocumentMetaData
annotation in the given CAS. The meta data fields can
then be set on the returned object.aJcas
- the CAS to create the meta data for.DocumentMetaData
annotation that has already been added to the CAS indexes.IllegalStateException
- if there is already a DocumentMetaData
annotationpublic static void copy(org.apache.uima.jcas.JCas aSourceView, org.apache.uima.jcas.JCas aTargetView)
DocumentMetaData
annotation from one view to another.aSourceView
- the source.aTargetView
- the target.public static DocumentMetaData get(org.apache.uima.cas.CAS aCas)
DocumentMetaData
from the CAS.aCas
- a CAS.DocumentMetaData
from the CAS.IllegalArgumentException
- if no DocumentMetaData
exists in the CAS.public static DocumentMetaData get(org.apache.uima.jcas.JCas aJCas)
DocumentMetaData
from the CAS.aJCas
- the JCas.DocumentMetaData
from the CAS.IllegalArgumentException
- if no DocumentMetaData
exists in the CAS.Copyright © 2007–2018 Ubiquitous Knowledge Processing (UKP) Lab, Technische Universität Darmstadt. All rights reserved.