Package org.apache.uima.flow.impl
Class CapabilityLanguageFlowObject
java.lang.Object
org.apache.uima.flow.CasFlow_ImplBase
org.apache.uima.flow.impl.CapabilityLanguageFlowObject
The
CapabilityLanguageAnalysisSequence is used for a
CapabilityLanguageFlow. The sequence contains all analysis engines included in the
CapabilityLanguageFlow.
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
FieldsModifier and TypeFieldDescriptionprivate static final charmain language separator e.g 'en' and 'en-US'private Map<String, List<AnalysisSequenceCapabilityNode>> flowTable includes all languages with their flow sequenceprivate intCurrent index in the sequence list.private TypeSystemsave the last type systemprivate final CapabilityLanguageFlowController(package private) static final longprivate static final String -
Constructor Summary
ConstructorsConstructorDescriptionCapabilityLanguageFlowObject(Map<String, List<AnalysisSequenceCapabilityNode>> aFlowTable, CapabilityLanguageFlowController aParentController) Create a new CapabilityLangaugeAnalysisSequence with the flowTable -
Method Summary
Modifier and TypeMethodDescriptionclone()Returns a clone of thisAnalysisSequence.next()Gets the next destination for the CAS.protected voidrecompiles 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.voidreset index of the sequence to 0Methods inherited from class org.apache.uima.flow.CasFlow_ImplBase
aborted, continueOnFailure, getCas, newCasProduced, newCasProduced, setCas
-
Field Details
-
UNSPECIFIED_LANGUAGE
- See Also:
-
mLastTypeSystem
save the last type system -
mParentController
-
mIndex
private int mIndexCurrent index in the sequence list. -
mFlowTable
flowTable includes all languages with their flow sequence -
LANGUAGE_SEPARATOR
private static final char LANGUAGE_SEPARATORmain language separator e.g 'en' and 'en-US'- See Also:
-
serialVersionUID
static final long serialVersionUID- See Also:
-
-
Constructor Details
-
CapabilityLanguageFlowObject
public CapabilityLanguageFlowObject(Map<String, List<AnalysisSequenceCapabilityNode>> aFlowTable, CapabilityLanguageFlowController aParentController) Create a new CapabilityLangaugeAnalysisSequence with the flowTable- Parameters:
aFlowTable- a flow tableaParentController- -
-
-
Method Details
-
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
Returns a clone of thisAnalysisSequence. -
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.
-