Class CasMultiplier_ImplBase
java.lang.Object
org.apache.uima.analysis_component.AnalysisComponent_ImplBase
org.apache.uima.analysis_component.CasMultiplier_ImplBase
- All Implemented Interfaces:
- AnalysisComponent
- Direct Known Subclasses:
- CasMultiplier_ImplBase
Base class to be extended by CAS Multipliers that use the 
CAS interface. A CAS Multiplier
 can produce multiple output CASes while processing an input CAS. See AnalysisComponent
 for a description of how the framework calls the methods on this interface.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintReturns the maximum number of CAS instances that this CAS Multiplier expects to use at the same time.protected final CASGets an empty CAS that this CAS Multiplier can then populate.Returns the specific CAS interface that this AnalysisComponent requires the framework to pass to itsAnalysisComponent.process(AbstractCas)method.final voidprocess(AbstractCas aCAS) Inputs a CAS to the AnalysisComponent.abstract voidThis method should be overriden by subclasses.voidtypeSystemInit(TypeSystem aTypeSystem) Informs this annotator that the CAS TypeSystem has changed.Methods inherited from class org.apache.uima.analysis_component.AnalysisComponent_ImplBasebatchProcessComplete, collectionProcessComplete, destroy, getContext, getLogger, getResultSpecification, initialize, reconfigure, setResultSpecificationMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.uima.analysis_component.AnalysisComponenthasNext, next
- 
Constructor Details- 
CasMultiplier_ImplBasepublic CasMultiplier_ImplBase()
 
- 
- 
Method Details- 
getRequiredCasInterfaceDescription copied from interface:AnalysisComponentReturns the specific CAS interface that this AnalysisComponent requires the framework to pass to itsAnalysisComponent.process(AbstractCas)method.- Returns:
- the required CAS interface. This must specify a subtype of AbstractCas.
 
- 
getCasInstancesRequiredpublic int getCasInstancesRequired()Returns the maximum number of CAS instances that this CAS Multiplier expects to use at the same time. Returns a default value of 1, which will be sufficient for most CAS Multipliers. Only if there is a clear need should this be overridden to return something greater than 1.- Returns:
- the number of CAS instances required by this AnalysisComponent.
 
- 
processDescription copied from interface:AnalysisComponentInputs a CAS to the AnalysisComponent. The AnalysisComponent "owns" this CAS until such time asAnalysisComponent.hasNext()is called and returns false or untilprocessis called again (see class description).- Parameters:
- aCAS- A CAS that this AnalysisComponent should process. The framework will ensure that aCAS implements the specific CAS interface specified by the- AnalysisComponent.getRequiredCasInterface()method.
- Throws:
- AnalysisEngineProcessException- if a problem occurs during processing
 
- 
processThis method should be overriden by subclasses. Inputs a CAS to the AnalysisComponent. The AnalysisComponent "owns" this CAS until such time asAnalysisComponent.hasNext()is called and returns false, or until theprocessmethod is called again (seeAnalysisComponentfor details).- Parameters:
- aCAS- A CAS that this AnalysisComponent should process.
- Throws:
- AnalysisEngineProcessException- if a problem occurs during processing
 
- 
typeSystemInitInforms this annotator that the CAS TypeSystem has changed. The Analysis Engine calls this from PrimitiveAnalysisEngine_impl which-calls CasMultiplier_ImplBase.process which-calls checkTypeSystemChange and will call it again whenever the CAS TypeSystem changes.In this method, the Annotator should use the TypeSystemto resolve the names of Type and Features to the actualTypeandFeatureobjects, which can then be used during processing.- Parameters:
- aTypeSystem- the new type system to use as input to your initialization
- Throws:
- AnalysisEngineProcessException- if the provided type system is missing types or features required by this annotator
 
- 
getEmptyCASGets an empty CAS that this CAS Multiplier can then populate.- Returns:
- an empty CAS
 
 
-