Package org.apache.uima.flow.impl
Class CapabilityLanguageFlowObject
- java.lang.Object
-
- org.apache.uima.flow.CasFlow_ImplBase
-
- org.apache.uima.flow.impl.CapabilityLanguageFlowObject
-
- All Implemented Interfaces:
java.lang.Cloneable,Flow
public class CapabilityLanguageFlowObject extends CasFlow_ImplBase implements java.lang.Cloneable
TheCapabilityLanguageAnalysisSequenceis used for aCapabilityLanguageFlow. The sequence contains all analysis engines included in theCapabilityLanguageFlow. Within this sequence skipping of analysis engines is possible if the document language of the current document does not match to the analysis engine capabilities or the output capabilities are already done by another analysis engine.
-
-
Field Summary
Fields Modifier and Type Field Description private static charLANGUAGE_SEPARATORmain language separator e.g 'en' and 'en-US'private java.util.Map<java.lang.String,java.util.List<AnalysisSequenceCapabilityNode>>mFlowTableflowTable includes all languages with their flow sequenceprivate intmIndexCurrent index in the sequence list.private TypeSystemmLastTypeSystemsave the last type systemprivate CapabilityLanguageFlowControllermParentController(package private) static longserialVersionUIDprivate static java.lang.StringUNSPECIFIED_LANGUAGE
-
Constructor Summary
Constructors Constructor Description CapabilityLanguageFlowObject(java.util.Map<java.lang.String,java.util.List<AnalysisSequenceCapabilityNode>> aFlowTable, CapabilityLanguageFlowController aParentController)Create a new CapabilityLangaugeAnalysisSequence with the flowTable
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()Returns a clone of thisAnalysisSequence.Stepnext()Gets the next destination for the CAS.protected voidrecompileFlowTable()recompiles all result specs in the flow table with the current type system Actual recompiling is done later when first needed; what happens now is that the type system is set into the result spec, which the compile will need.voidresetIndex()reset index of the sequence to 0-
Methods inherited from class org.apache.uima.flow.CasFlow_ImplBase
aborted, continueOnFailure, getCas, newCasProduced, newCasProduced, setCas
-
-
-
-
Field Detail
-
UNSPECIFIED_LANGUAGE
private static final java.lang.String UNSPECIFIED_LANGUAGE
- See Also:
- Constant Field Values
-
mLastTypeSystem
private TypeSystem mLastTypeSystem
save the last type system
-
mParentController
private final CapabilityLanguageFlowController mParentController
-
mIndex
private int mIndex
Current index in the sequence list.
-
mFlowTable
private java.util.Map<java.lang.String,java.util.List<AnalysisSequenceCapabilityNode>> mFlowTable
flowTable includes all languages with their flow sequence
-
LANGUAGE_SEPARATOR
private static final char LANGUAGE_SEPARATOR
main language separator e.g 'en' and 'en-US'- See Also:
- Constant Field Values
-
serialVersionUID
static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CapabilityLanguageFlowObject
public CapabilityLanguageFlowObject(java.util.Map<java.lang.String,java.util.List<AnalysisSequenceCapabilityNode>> aFlowTable, CapabilityLanguageFlowController aParentController)
Create a new CapabilityLangaugeAnalysisSequence with the flowTable- Parameters:
aFlowTable- a flow tableaParentController- -
-
-
Method Detail
-
next
public Step next()
Description copied from interface:FlowGets the next destination for the CAS. This is defined by aStepobject. There may be different kinds of Step objects to indicate different kinds of routing actions.
-
clone
public java.lang.Object clone()
Returns a clone of thisAnalysisSequence.- Overrides:
clonein classjava.lang.Object- Returns:
- a new
AnalysisSequenceobject that is an exact clone of this one.
-
resetIndex
public void resetIndex()
reset index of the sequence to 0
-
recompileFlowTable
protected void recompileFlowTable()
recompiles all result specs in the flow table with the current type system Actual recompiling is done later when first needed; what happens now is that the type system is set into the result spec, which the compile will need.
-
-