|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.uima.resource.Resource_ImplBase
org.apache.uima.resource.ConfigurableResource_ImplBase
org.apache.uima.collection.CasConsumer_ImplBase
org.apache.uima.examples.xmi.XmiWriterCasConsumer
public class XmiWriterCasConsumer
A simple CAS consumer that writes the CAS to XMI format.
This CAS Consumer takes one parameter:
OutputDirectory - path to directory into which output files will be written
| Field Summary | |
|---|---|
static java.lang.String |
PARAM_OUTPUTDIR
Name of configuration parameter that must be set to the path of a directory into which the output files will be written. |
| Fields inherited from interface org.apache.uima.resource.Resource |
|---|
PARAM_AGGREGATE_SOFA_MAPPINGS, PARAM_CONFIG_PARAM_SETTINGS, PARAM_PERFORMANCE_TUNING_SETTINGS, PARAM_RESOURCE_MANAGER, PARAM_UIMA_CONTEXT |
| Constructor Summary | |
|---|---|
XmiWriterCasConsumer()
|
|
| Method Summary | |
|---|---|
void |
initialize()
This method is called during initialization, and does nothing by default. |
void |
processCas(CAS aCAS)
Processes the CAS which was populated by the TextAnalysisEngines. |
| Methods inherited from class org.apache.uima.collection.CasConsumer_ImplBase |
|---|
batchProcessComplete, collectionProcessComplete, destroy, getProcessingResourceMetaData, initialize, isReadOnly, isStateless, processCas, reconfigure, typeSystemInit |
| Methods inherited from class org.apache.uima.resource.ConfigurableResource_ImplBase |
|---|
getConfigParameterValue, getConfigParameterValue, setConfigParameterValue, setConfigParameterValue |
| Methods inherited from class org.apache.uima.resource.Resource_ImplBase |
|---|
getCasManager, getLogger, getMetaData, getResourceManager, getUimaContext, getUimaContextAdmin, setLogger, setMetaData |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.uima.resource.ConfigurableResource |
|---|
getConfigParameterValue, getConfigParameterValue, setConfigParameterValue, setConfigParameterValue |
| Methods inherited from interface org.apache.uima.resource.Resource |
|---|
getLogger, getMetaData, getResourceManager, getUimaContext, getUimaContextAdmin, setLogger |
| Field Detail |
|---|
public static final java.lang.String PARAM_OUTPUTDIR
| Constructor Detail |
|---|
public XmiWriterCasConsumer()
| Method Detail |
|---|
public void initialize()
throws ResourceInitializationException
CasConsumer_ImplBase
initialize in class CasConsumer_ImplBaseResourceInitializationException - if a failure occurs during initialization.
public void processCas(CAS aCAS)
throws ResourceProcessException
aCAS - a CAS which has been populated by the TAEs
ResourceProcessException - if there is an error in processing the ResourceCasObjectProcessor.processCas(org.apache.uima.cas.CAS)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||