public class XmiEcoreCasConsumer
extends org.apache.uima.collection.CasConsumer_ImplBase
This CAS Consumer takes two parameters:
OutputDirectory - path to directory into which output files will be writtenWriteEcoreTypeSystem - if true, writes the type system to an Ecore file and
links all of the XMI files to it via their schemaLocation attribute. Requires EMF libraries in
the classpath if this option is set to true.| Modifier and Type | Field and Description |
|---|---|
static 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.
|
static String |
PARAM_WRITE_ECORE_TYPESYSTEM |
| Constructor and Description |
|---|
XmiEcoreCasConsumer() |
| Modifier and Type | Method and Description |
|---|---|
void |
initialize() |
void |
processCas(org.apache.uima.cas.CAS aCAS)
Processes a CAS.
|
batchProcessComplete, collectionProcessComplete, destroy, getProcessingResourceMetaData, initialize, isReadOnly, isStateless, processCas, reconfigure, typeSystemInitgetConfigParameterValue, getConfigParameterValue, setConfigParameterValue, setConfigParameterValuegetCasManager, getLogger, getMetaData, getResourceManager, getUimaContext, getUimaContextAdmin, setLogger, setMetaDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic static final String PARAM_OUTPUTDIR
public static final String PARAM_WRITE_ECORE_TYPESYSTEM
public void initialize()
throws org.apache.uima.resource.ResourceInitializationException
initialize in class org.apache.uima.collection.CasConsumer_ImplBaseorg.apache.uima.resource.ResourceInitializationExceptionpublic void processCas(org.apache.uima.cas.CAS aCAS)
throws org.apache.uima.resource.ResourceProcessException
aCAS - The CAS to write to XMIorg.apache.uima.resource.ResourceProcessException - if there is an error in processing the ResourceCasObjectProcessor.processCas(org.apache.uima.cas.CAS)Copyright © 2006–2014 The Apache Software Foundation. All rights reserved.