@Deprecated public abstract class Annotator_ImplBase extends Object implements BaseAnnotator
CasAnnotator_ImplBase or
JCasAnnotator_ImplBase.| Constructor and Description |
|---|
Annotator_ImplBase()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Deprecated.
This default implementation does nothing.
|
protected void |
finalize()
Deprecated.
|
protected AnnotatorContext |
getContext()
Deprecated.
Gets the
AnnotatorContext to be used by this Annotator. |
protected TypeSystem |
getTypeSystem()
Deprecated.
Gets the
TypeSystem that was passed to the most recent call to
typeSystemInit(TypeSystem). |
void |
initialize(AnnotatorContext aContext)
Deprecated.
The only thing this implementation does is store the AnnotatorContext so that it can be
accessed later via the
getContext() method. |
void |
reconfigure()
Deprecated.
This default implementation calls
destroy() followed by
initialize(AnnotatorContext) and typeSystemInit(TypeSystem). |
void |
typeSystemInit(TypeSystem aTypeSystem)
Deprecated.
The only thing this implementation does is store the TypeSystem so that it can be accessed by
the
getTypeSystem() method, and also so that it can be passed back to the
typeSystemInit(TypeSystem) method by the default implementation of
reconfigure(). |
public void initialize(AnnotatorContext aContext) throws AnnotatorInitializationException, AnnotatorConfigurationException
getContext() method.initialize in interface BaseAnnotatoraContext - Provides access to external resources that may be used by this annotator. This
includes configuration parameters, logging and instrumentation services, and access to
external analysis resources.AnnotatorInitializationException - if the annotator cannot initialize itself.AnnotatorConfigurationException - if the configuration specified for this annotator is invalid.BaseAnnotator.initialize(org.apache.uima.analysis_engine.annotator.AnnotatorContext)public void typeSystemInit(TypeSystem aTypeSystem) throws AnnotatorInitializationException, AnnotatorConfigurationException
getTypeSystem() method, and also so that it can be passed back to the
typeSystemInit(TypeSystem) method by the default implementation of
reconfigure().typeSystemInit in interface BaseAnnotatoraTypeSystem - the new type systemAnnotatorInitializationException - if the annotator cannot initialize itself.AnnotatorConfigurationException - if the configuration specified for this annotator is invalid.BaseAnnotator.typeSystemInit(org.apache.uima.cas.TypeSystem)public void destroy()
destroy in interface BaseAnnotatorBaseAnnotator.destroy()public void reconfigure()
throws AnnotatorConfigurationException,
AnnotatorInitializationException
destroy() followed by
initialize(AnnotatorContext) and typeSystemInit(TypeSystem). The
typeSystemInit method will be passed the last known TypeSystem.reconfigure in interface BaseAnnotatorAnnotatorConfigurationException - if the configuration specified for this annotator is invalid.AnnotatorInitializationException - if the annotator fails to reinitialize itself based on the new configuration.BaseAnnotator.reconfigure()protected AnnotatorContext getContext()
AnnotatorContext to be used by this Annotator. The
AnnotatorContext provides access to external resources that may be used by this
annotator. This includes configuration parameters, logging and instrumentation services, and
access to text analysis resources.protected TypeSystem getTypeSystem()
TypeSystem that was passed to the most recent call to
typeSystemInit(TypeSystem).Copyright © 2006–2021 The Apache Software Foundation. All rights reserved.