Class AnnotationAdderAnnotator

  • All Implemented Interfaces:
    org.apache.uima.analysis_component.AnalysisComponent

    public class AnnotationAdderAnnotator
    extends org.apache.uima.analysis_component.JCasAnnotator_ImplBase
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void initialize​(org.apache.uima.UimaContext aContext)
      This method is called a single time by the framework at component creation.
      void process​(org.apache.uima.jcas.JCas aJCas)
      This method is called for each document going through the component.
      • Methods inherited from class org.apache.uima.analysis_component.JCasAnnotator_ImplBase

        getRequiredCasInterface, process
      • Methods inherited from class org.apache.uima.analysis_component.Annotator_ImplBase

        getCasInstancesRequired, hasNext, next
      • Methods inherited from class org.apache.uima.analysis_component.AnalysisComponent_ImplBase

        batchProcessComplete, collectionProcessComplete, destroy, getContext, getResultSpecification, reconfigure, setResultSpecification
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • KEY_ANNOTATION_SOURCE

        public static final java.lang.String KEY_ANNOTATION_SOURCE
        See Also:
        Constant Field Values
      • PARAM_OFFSET_MODE

        public static final java.lang.String PARAM_OFFSET_MODE
        See Also:
        Constant Field Values
      • PARAM_DEFAULT_UIMA_TYPE

        public static final java.lang.String PARAM_DEFAULT_UIMA_TYPE
        See Also:
        Constant Field Values
    • Constructor Detail

      • AnnotationAdderAnnotator

        public AnnotationAdderAnnotator()
    • Method Detail

      • initialize

        public void initialize​(org.apache.uima.UimaContext aContext)
                        throws org.apache.uima.resource.ResourceInitializationException
        This method is called a single time by the framework at component creation. Here, descriptor parameters are read and initial setup is done.
        Specified by:
        initialize in interface org.apache.uima.analysis_component.AnalysisComponent
        Overrides:
        initialize in class org.apache.uima.analysis_component.AnalysisComponent_ImplBase
        Throws:
        org.apache.uima.resource.ResourceInitializationException
      • process

        public void process​(org.apache.uima.jcas.JCas aJCas)
                     throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
        This method is called for each document going through the component. This is where the actual work happens.
        Specified by:
        process in class org.apache.uima.analysis_component.JCasAnnotator_ImplBase
        Throws:
        org.apache.uima.analysis_engine.AnalysisEngineProcessException