public class AnnotationPrinter
extends org.apache.uima.collection.CasConsumer_ImplBase
implements org.apache.uima.collection.base_cpm.CasObjectProcessor
| Constructor and Description |
|---|
AnnotationPrinter() |
| Modifier and Type | Method and Description |
|---|---|
void |
batchProcessComplete(org.apache.uima.util.ProcessTrace aTrace)
Called when a batch of processing is completed.
|
void |
collectionProcessComplete(org.apache.uima.util.ProcessTrace aTrace)
Called when the entire collection is completed.
|
void |
destroy()
Called if clean up is needed in case of exit under error conditions.
|
void |
initialize()
Initializes this CAS Consumer with the parameters specified in the descriptor.
|
void |
processCas(org.apache.uima.cas.CAS aCAS)
Processes the CasContainer which was populated by the TextAnalysisEngines.
|
void |
reconfigure()
Reconfigures the parameters of this Consumer.
|
getProcessingResourceMetaData, initialize, isReadOnly, isStateless, processCas, typeSystemInitgetConfigParameterValue, getConfigParameterValue, setConfigParameterValue, setConfigParameterValuegetCasManager, getLogger, getMetaData, getRelativePathResolver, getResourceManager, getUimaContext, getUimaContextAdmin, setLogger, setMetaDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprocessCas, typeSystemInitgetProcessingResourceMetaData, isReadOnly, isStatelesspublic void initialize()
throws org.apache.uima.resource.ResourceInitializationException
initialize in class org.apache.uima.collection.CasConsumer_ImplBaseorg.apache.uima.resource.ResourceInitializationException - if there is error in initializing the resourcespublic void processCas(org.apache.uima.cas.CAS aCAS)
throws org.apache.uima.resource.ResourceProcessException
processCas in interface org.apache.uima.collection.base_cpm.CasObjectProcessoraCAS - CasContainer which has been populated by the TAEsorg.apache.uima.resource.ResourceProcessException - if there is an error in processing the ResourceCasObjectProcessor.processCas(CAS)public void batchProcessComplete(org.apache.uima.util.ProcessTrace aTrace)
throws org.apache.uima.resource.ResourceProcessException,
IOException
batchProcessComplete in interface org.apache.uima.collection.base_cpm.CasProcessorbatchProcessComplete in class org.apache.uima.collection.CasConsumer_ImplBaseaTrace - ProcessTrace object that will log events in this method.org.apache.uima.resource.ResourceProcessException - if there is an error in processing the ResourceIOException - if there is an IO ErrorCasProcessor.batchProcessComplete(ProcessTrace)public void collectionProcessComplete(org.apache.uima.util.ProcessTrace aTrace)
throws org.apache.uima.resource.ResourceProcessException,
IOException
collectionProcessComplete in interface org.apache.uima.collection.base_cpm.CasProcessorcollectionProcessComplete in class org.apache.uima.collection.CasConsumer_ImplBaseaTrace - ProcessTrace object that will log events in this method.org.apache.uima.resource.ResourceProcessException - if there is an error in processing the ResourceIOException - if there is an IO ErrorCasProcessor.collectionProcessComplete(ProcessTrace)public void reconfigure()
throws org.apache.uima.resource.ResourceConfigurationException
reconfigure in interface org.apache.uima.resource.ConfigurableResourcereconfigure in class org.apache.uima.collection.CasConsumer_ImplBaseorg.apache.uima.resource.ResourceConfigurationException - if the configuration parameter settings are invalidConfigurableResource.reconfigure()public void destroy()
destroy in interface org.apache.uima.resource.Resourcedestroy in class org.apache.uima.collection.CasConsumer_ImplBaseResource.destroy()Copyright © 2006–2017 The Apache Software Foundation. All rights reserved.