public class XmiEcoreCasConsumer extends 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 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.
|
static java.lang.String |
PARAM_WRITE_ECORE_TYPESYSTEM |
PARAM_AGGREGATE_SOFA_MAPPINGS, PARAM_CONFIG_MANAGER, PARAM_CONFIG_PARAM_SETTINGS, PARAM_PERFORMANCE_TUNING_SETTINGS, PARAM_RESOURCE_MANAGER, PARAM_UIMA_CONTEXT
Constructor and Description |
---|
XmiEcoreCasConsumer() |
Modifier and Type | Method and Description |
---|---|
void |
initialize()
This method is called during initialization, and does nothing by default.
|
void |
processCas(CAS aCAS)
Processes a CAS.
|
batchProcessComplete, collectionProcessComplete, destroy, getProcessingResourceMetaData, initialize, isReadOnly, isStateless, processCas, reconfigure, typeSystemInit
getConfigParameterValue, getConfigParameterValue, setConfigParameterValue, setConfigParameterValue
getCasManager, getLogger, getMetaData, getResourceManager, getUimaContext, getUimaContextAdmin, setLogger, setMetaData
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConfigParameterValue, getConfigParameterValue, setConfigParameterValue, setConfigParameterValue
getLogger, getMetaData, getResourceManager, getUimaContext, getUimaContextAdmin, setLogger
public static final java.lang.String PARAM_OUTPUTDIR
public static final java.lang.String PARAM_WRITE_ECORE_TYPESYSTEM
public void initialize() throws ResourceInitializationException
CasConsumer_ImplBase
initialize
in class CasConsumer_ImplBase
ResourceInitializationException
- if a failure occurs during initialization.public void processCas(CAS aCAS) throws ResourceProcessException
aCAS
- The CAS to write to XMIResourceProcessException
- if there is an error in processing the ResourceCasObjectProcessor.processCas(org.apache.uima.cas.CAS)
Copyright © 2012. All Rights Reserved.