org.apache.uima.tutorial.ex1
Class RoomNumberAnnotator

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.uima.tutorial.ex1.RoomNumberAnnotator
All Implemented Interfaces:
AnalysisComponent

public class RoomNumberAnnotator
extends JCasAnnotator_ImplBase

Example annotator that detects room numbers using Java 1.4 regular expressions.


Constructor Summary
RoomNumberAnnotator()
           
 
Method Summary
 void process(JCas aJCas)
          This method should be overriden by subclasses.
 
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, initialize, reconfigure, setResultSpecification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoomNumberAnnotator

public RoomNumberAnnotator()
Method Detail

process

public void process(JCas aJCas)
Description copied from class: JCasAnnotator_ImplBase
This method should be overriden by subclasses. Inputs a JCAS to the AnalysisComponent. The AnalysisComponent "owns" this JCAS until such time as Annotator_ImplBase.hasNext() is called and returns false (see AnalysisComponent for details).

Specified by:
process in class JCasAnnotator_ImplBase
Parameters:
aJCas - a JCAS that this AnalysisComponent should process.
See Also:
JCasAnnotator_ImplBase.process(JCas)


Copyright © 2012. All Rights Reserved.