|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.uima.collection.impl.CasConverter
public class CasConverter
Converts CasData to and from Cas Object (CAS).
| Constructor Summary | |
|---|---|
CasConverter()
|
|
| Method Summary | |
|---|---|
CasData |
casContainerToCasData(CAS aContainer)
Convert CAS Container (aka CAS Object) to CAS Data |
void |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CasConverter()
| Method Detail |
|---|
public java.lang.String getDocumentTextTypeName()
public void setDocumentTextTypeName(java.lang.String aDocumentTextTypeName)
aDocumentTextTypeName - the document text type namepublic java.lang.String getDocumentTextFeatureName()
public void setDocumentTextFeatureName(java.lang.String aDocumentTextFeatureName)
aDocumentTextFeatureName - the document text feature name
public void casDataToCasContainer(CasData aData,
CAS aContainer,
boolean aLenient)
throws 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.
CollectionException - if aLenient is false and a type system incompatibility is foundpublic CasData casContainerToCasData(CAS aContainer)
aContainer - CAS to convert
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||