public class ViewCreatorAnnotator extends JCasAnnotator_ImplBase
Modifier and Type | Field and Description |
---|---|
static String |
PARAM_VIEW_NAME
The parameter name for the name of the viewed to be created by this annotator
|
Constructor and Description |
---|
ViewCreatorAnnotator() |
Modifier and Type | Method and Description |
---|---|
static org.apache.uima.jcas.JCas |
createViewSafely(org.apache.uima.jcas.JCas aJCas,
String aViewName)
Provides a simple call that allows you to safely create a view if it has not been created yet.
|
void |
process(org.apache.uima.jcas.JCas aJCas) |
initialize
getRequiredCasInterface, process
getCasInstancesRequired, hasNext, next
public static final String PARAM_VIEW_NAME
public void process(org.apache.uima.jcas.JCas aJCas) 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.jcas.JCas createViewSafely(org.apache.uima.jcas.JCas aJCas, String aViewName) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
aJCas
- the JCas
to create the view inaViewName
- the name of the new vieworg.apache.uima.analysis_engine.AnalysisEngineProcessException
- if the view could not be created or if an existing view with the given name could not
be accessedCopyright © 2012–2022 The Apache Software Foundation. All rights reserved.