public class XmlDetagger extends CasAnnotator_ImplBase
| Modifier and Type | Field and Description |
|---|---|
static String |
PARAM_XMLTAG
Name of optional configuration parameter that contains the name of an XML tag that appears in
the input file.
|
| Constructor and Description |
|---|
XmlDetagger() |
| Modifier and Type | Method and Description |
|---|---|
void |
initialize(UimaContext aContext)
Performs any startup tasks required by this component.
|
void |
process(CAS aCAS)
Inputs a CAS to the AnalysisComponent.
|
void |
typeSystemInit(TypeSystem aTypeSystem)
Informs this annotator that the CAS TypeSystem has changed.
|
getRequiredCasInterface, processgetCasInstancesRequired, hasNext, nextbatchProcessComplete, collectionProcessComplete, destroy, getContext, getResultSpecification, reconfigure, setResultSpecificationpublic static final String PARAM_XMLTAG
public void initialize(UimaContext aContext) throws ResourceInitializationException
AnalysisComponent
The framework supplies this AnalysisComponent with a reference to the UimaContext that
it will use, for example to access configuration settings or resources. This AnalysisComponent
should store a reference to its the UimaContext for later use.
initialize in interface AnalysisComponentinitialize in class AnalysisComponent_ImplBaseaContext - Provides access to services and resources managed by the framework. This includes
configuration parameters, logging, and access to external resources.ResourceInitializationException - if this AnalysisComponent cannot initialize successfully.public void typeSystemInit(TypeSystem aTypeSystem) throws AnalysisEngineProcessException
CasAnnotator_ImplBaseAnalysisComponent_ImplBase.initialize(org.apache.uima.UimaContext), and will call
it again whenever the CAS TypeSystem changes.
In this method, the Annotator should use the TypeSystem to resolve the names of Type
and Features to the actual Type and
Feature objects, which can then be used during processing.
typeSystemInit in class CasAnnotator_ImplBaseaTypeSystem - the new type system to use as input to your initializationAnalysisEngineProcessException - if the provided type system is missing types or features required by this annotatorpublic void process(CAS aCAS) throws AnalysisEngineProcessException
CasAnnotator_ImplBaseprocess in class CasAnnotator_ImplBaseaCAS - A CAS that this AnalysisComponent should process.AnalysisEngineProcessException - if a problem occurs during processingCopyright © 2015. All rights reserved.