public class InlineXmlCasConsumer extends CasConsumer_ImplBase
This CAS Consumer takes two parameters:
OutputDirectory
- path to directory into which output files will be writtenOutputFilter
(optional) - an FSMatchConstraint which annotations must match
in order to be included in the output. If omitted, all annotations will be included in the
output.
The XML descriptor for this collection reader is stored in the uima-core.jar file as
org/apache/uima/util/InlineXmlCasConsumer.xml
. It can be accessed via the static
method getDescription()
, which parses the descirptor and returns a
CasConsumerDescription
object.
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_XCAS
Optional configuration parameter that specifies XCAS output files
|
PARAM_AGGREGATE_SOFA_MAPPINGS, PARAM_CONFIG_MANAGER, PARAM_CONFIG_PARAM_SETTINGS, PARAM_EXTERNAL_OVERRIDE_SETTINGS, PARAM_PERFORMANCE_TUNING_SETTINGS, PARAM_RESOURCE_MANAGER, PARAM_UIMA_CONTEXT
Constructor and Description |
---|
InlineXmlCasConsumer() |
Modifier and Type | Method and Description |
---|---|
static CasConsumerDescription |
getDescription()
Parses and returns the descriptor for this collection reader.
|
static URL |
getDescriptorURL() |
void |
initialize()
This method is called during initialization, and does nothing by default.
|
void |
processCas(CAS aCAS)
Processes the CasContainer which was populated by the TextAnalysisEngines.
|
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 String PARAM_OUTPUTDIR
public static final String PARAM_XCAS
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
- a CAS which has been populated by the Analysis EnginesResourceProcessException
- if there is an error in processing the ResourceCasObjectProcessor.processCas(org.apache.uima.cas.CAS)
public static CasConsumerDescription getDescription() throws InvalidXMLException
InvalidXMLException
- if the descriptor is invalid or missingpublic static URL getDescriptorURL()
Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.