public class CasConverter extends Object
CasData to and from Cas Object (CAS).| Constructor and Description |
|---|
CasConverter() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.uima.cas_data.CasData |
casContainerToCasData(org.apache.uima.cas.CAS aContainer)
Convert CAS Container (aka CAS Object) to CAS Data
|
void |
casDataToCasContainer(org.apache.uima.cas_data.CasData aData,
org.apache.uima.cas.CAS aContainer,
boolean aLenient)
Convert CAS Data to CAS Container (aka CAS Object)
|
String |
getDocumentTextFeatureName()
Gets the name of the CASData Feature that stores the document text.
|
String |
getDocumentTextTypeName()
Gets the name of the CASData FeatureStructure Type that stores the document text.
|
void |
setDocumentTextFeatureName(String aDocumentTextFeatureName)
Sets the name of the CASData Feature that stores the document text.
|
void |
setDocumentTextTypeName(String aDocumentTextTypeName)
Sets the name of the CASData FeatureStructure Type that stores the document text.
|
public String getDocumentTextTypeName()
public void setDocumentTextTypeName(String aDocumentTextTypeName)
aDocumentTextTypeName - the document text type namepublic String getDocumentTextFeatureName()
public void setDocumentTextFeatureName(String aDocumentTextFeatureName)
aDocumentTextFeatureName - the document text feature namepublic void casDataToCasContainer(org.apache.uima.cas_data.CasData aData,
org.apache.uima.cas.CAS aContainer,
boolean aLenient)
throws org.apache.uima.collection.CollectionException
aData - CAS Data to convertaContainer - CAS to convert intoaLenient - if true, data that does not fit into CAS type system will be ignored. If false, an
exception will be thrown in that case.org.apache.uima.collection.CollectionException - if aLenient is false and a type system incompatibility is foundpublic org.apache.uima.cas_data.CasData casContainerToCasData(org.apache.uima.cas.CAS aContainer)
aContainer - CAS to convertCopyright © 2006–2017 The Apache Software Foundation. All rights reserved.