@PipeBitInfo(name="Start or Finish Logger", description="Simple Annotator to place before and after other annotators that do not Log their Start and Finish.", role=SPECIAL) public class StartFinishLogger extends org.apache.uima.fit.component.JCasAnnotator_ImplBase
Modifier and Type | Field and Description |
---|---|
static String |
PARAM_IS_START |
static String |
PARAM_LOGGER_NAME |
Constructor and Description |
---|
StartFinishLogger() |
Modifier and Type | Method and Description |
---|---|
static org.apache.uima.analysis_engine.AnalysisEngineDescription |
createDescription(String loggerName,
boolean isStart) |
static org.apache.uima.analysis_engine.AnalysisEngine |
createEngine(String loggerName,
boolean isStart)
This method should be avoided.
|
static org.apache.uima.analysis_engine.AnalysisEngineDescription |
createLoggedDescription(org.apache.uima.analysis_engine.AnalysisEngineDescription mainDescription) |
static org.apache.uima.analysis_engine.AnalysisEngineDescription |
createLoggedDescription(Class<? extends org.apache.uima.analysis_component.AnalysisComponent> classType,
Object... parameters) |
static org.apache.uima.analysis_engine.AnalysisEngine |
createLoggedEngine(Class<? extends org.apache.uima.analysis_component.AnalysisComponent> classType,
Object... parameters)
This method should be avoided.
|
void |
initialize(org.apache.uima.UimaContext context) |
void |
process(org.apache.uima.jcas.JCas jcas) |
getRequiredCasInterface, process
getCasInstancesRequired, hasNext, next
public static final String PARAM_LOGGER_NAME
public static final String PARAM_IS_START
public void initialize(org.apache.uima.UimaContext context) throws org.apache.uima.resource.ResourceInitializationException
initialize
in interface org.apache.uima.analysis_component.AnalysisComponent
initialize
in class org.apache.uima.fit.component.JCasAnnotator_ImplBase
org.apache.uima.resource.ResourceInitializationException
public void process(org.apache.uima.jcas.JCas jcas) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
process
in class org.apache.uima.analysis_component.JCasAnnotator_ImplBase
org.apache.uima.analysis_engine.AnalysisEngineProcessException
public static org.apache.uima.analysis_engine.AnalysisEngine createEngine(String loggerName, boolean isStart) throws org.apache.uima.resource.ResourceInitializationException
loggerName
- name for the loggerisStart
- true to return an Engine that logs the Start, false to return an Engine that logs Finishorg.apache.uima.resource.ResourceInitializationException
- if UimaFit has a problempublic static org.apache.uima.analysis_engine.AnalysisEngineDescription createDescription(String loggerName, boolean isStart) throws org.apache.uima.resource.ResourceInitializationException
loggerName
- name for the loggerisStart
- true to return an Engine that logs the Start, false to return an Engine that logs Finishorg.apache.uima.resource.ResourceInitializationException
- if UimaFit has a problempublic static org.apache.uima.analysis_engine.AnalysisEngine createLoggedEngine(Class<? extends org.apache.uima.analysis_component.AnalysisComponent> classType, Object... parameters) throws org.apache.uima.resource.ResourceInitializationException
classType
- main componentparameters
- parameters for the main componentorg.apache.uima.resource.ResourceInitializationException
- if UimaFit has a problempublic static org.apache.uima.analysis_engine.AnalysisEngineDescription createLoggedDescription(Class<? extends org.apache.uima.analysis_component.AnalysisComponent> classType, Object... parameters) throws org.apache.uima.resource.ResourceInitializationException
classType
- main componentparameters
- parameters for the main componentorg.apache.uima.resource.ResourceInitializationException
- if UimaFit has a problempublic static org.apache.uima.analysis_engine.AnalysisEngineDescription createLoggedDescription(org.apache.uima.analysis_engine.AnalysisEngineDescription mainDescription) throws org.apache.uima.resource.ResourceInitializationException
mainDescription
- main component descriptionorg.apache.uima.resource.ResourceInitializationException
- if UimaFit has a problemCopyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.