org.apache.ctakes.core.ae
Class FilterAnnotator

java.lang.Object
  extended by org.apache.uima.analysis_component.AnalysisComponent_ImplBase
      extended by org.apache.uima.analysis_component.Annotator_ImplBase
          extended by org.apache.uima.analysis_component.JCasAnnotator_ImplBase
              extended by org.apache.ctakes.core.ae.FilterAnnotator
All Implemented Interfaces:
org.apache.uima.analysis_component.AnalysisComponent

public class FilterAnnotator
extends org.apache.uima.analysis_component.JCasAnnotator_ImplBase


Constructor Summary
FilterAnnotator()
           
 
Method Summary
 void initialize(org.apache.uima.UimaContext annotCtx)
           
 void process(org.apache.uima.jcas.JCas jcas)
          Checks if the annotation is of the type to be retained.
 
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
 

Constructor Detail

FilterAnnotator

public FilterAnnotator()
Method Detail

initialize

public void initialize(org.apache.uima.UimaContext annotCtx)
                throws org.apache.uima.resource.ResourceInitializationException
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 jcas)
             throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
Checks if the annotation is of the type to be retained. If not, removes it from the index. Uses helper method isValid(Annotation).

Specified by:
process in class org.apache.uima.analysis_component.JCasAnnotator_ImplBase
Throws:
org.apache.uima.analysis_engine.AnalysisEngineProcessException