Package org.apache.uima.collection.impl
Class CasConverter
- java.lang.Object
-
- org.apache.uima.collection.impl.CasConverter
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
mDocumentTextFeatureName
private java.lang.String
mDocumentTextTypeName
-
Constructor Summary
Constructors Constructor Description CasConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CasData
casContainerToCasData(CAS aContainer)
Convert CAS Container (aka CAS Object) to CAS Datavoid
casDataToCasContainer(CasData aData, CAS aContainer, boolean aLenient)
Convert CAS Data to CAS Container (aka CAS Object)java.lang.String
getDocumentTextFeatureName()
Gets the name of the CASData Feature that stores the document text.java.lang.String
getDocumentTextTypeName()
Gets the name of the CASData FeatureStructure Type that stores the document text.void
setDocumentTextFeatureName(java.lang.String aDocumentTextFeatureName)
Sets the name of the CASData Feature that stores the document text.void
setDocumentTextTypeName(java.lang.String aDocumentTextTypeName)
Sets the name of the CASData FeatureStructure Type that stores the document text.
-
-
-
Method Detail
-
getDocumentTextTypeName
public java.lang.String getDocumentTextTypeName()
Gets the name of the CASData FeatureStructure Type that stores the document text.- Returns:
- the document text type name
-
setDocumentTextTypeName
public void setDocumentTextTypeName(java.lang.String aDocumentTextTypeName)
Sets the name of the CASData FeatureStructure Type that stores the document text.- Parameters:
aDocumentTextTypeName
- the document text type name
-
getDocumentTextFeatureName
public java.lang.String getDocumentTextFeatureName()
Gets the name of the CASData Feature that stores the document text.- Returns:
- the document text feature name
-
setDocumentTextFeatureName
public void setDocumentTextFeatureName(java.lang.String aDocumentTextFeatureName)
Sets the name of the CASData Feature that stores the document text.- Parameters:
aDocumentTextFeatureName
- the document text feature name
-
casDataToCasContainer
public void casDataToCasContainer(CasData aData, CAS aContainer, boolean aLenient) throws CollectionException
Convert CAS Data to CAS Container (aka CAS Object)- Parameters:
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.- Throws:
CollectionException
- ifaLenient
is false and a type system incompatibility is found
-
-