|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.uima.flow.CasFlow_ImplBase
public abstract class CasFlow_ImplBase
Convenience base class for Flow objects that use the CAS interface. Stores the CAS in a field
made accessible through the protected getCas()
method.
Constructor Summary | |
---|---|
CasFlow_ImplBase()
|
Method Summary | |
---|---|
protected CAS |
getCas()
Gets the CAS being routed by this Flow object. |
Flow |
newCasProduced(AbstractCas newCas,
String producedBy)
Overriden to check that newCas is an instanceof CAS . |
protected Flow |
newCasProduced(CAS newCas,
String producedBy)
By default, throws an exception to indicate this this Flow object does not support new CASes being produced in the middle of the flow. |
void |
setCas(CAS aCAS)
Sets the CAS to be routed by this Flow object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.uima.flow.Flow |
---|
next |
Constructor Detail |
---|
public CasFlow_ImplBase()
Method Detail |
---|
public void setCas(CAS aCAS)
FlowController.computeFlow(AbstractCas)
method after this Flow object is instantiated.
aCAS
- the CAS to be routed by this Flow objectpublic final Flow newCasProduced(AbstractCas newCas, String producedBy) throws AnalysisEngineProcessException
newCas
is an instanceof CAS
. If it is, then
newCasProduced(CAS,String)
is called. If not, an exception is thrown.
newCasProduced
in interface Flow
newCas
- the new CASproducedBy
- key of the AnalysisEngine (CAS Multiplier) that produced the new CAS
aCAS
through the
Aggregate Analysis Engine.
AnalysisEngineProcessException
Flow.newCasProduced(AbstractCas, String)
protected Flow newCasProduced(CAS newCas, String producedBy) throws AnalysisEngineProcessException
newCas
- the new CASproducedBy
- the key of the CAS Multiplier that produced this CAS
AnalysisEngineProcessException
Flow.newCasProduced(AbstractCas, String)
protected CAS getCas()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |