Class ReportingConstraintVisitor
java.lang.Object
com.aquima.interactions.foundation.report.ReportingVisitorDS
com.aquima.interactions.rule.report.ReportingConstraintVisitor
- All Implemented Interfaces:
IConstraintVisitor
,IRuleVisitor
IConstraintVisitor implementation that adds error reporting.
- Since:
- 5.0
- Author:
- O. Kerpershoek
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ReportingConstraintVisitor
(IInitializationReport report, IConstraintVisitor visitor) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addConstraint
(IConstraint constraint) The data layer implementation should invoke this addConstraint method for each constraint that should be added to the rule engine.void
addExternalConstraint
(IExternalRuleDS ruleDS) The data layer may invoke this method to add an external constraint rule.void
addTable
(String targetAttribute, IDecisionTableDS tableDS) This method can be used to add a decision table to a specific attribute as constraint.This method returns the meta model of the rule engine.This method returns the expression parser of the rule engine which may be used to parse expressions and dynamic texts.Methods inherited from class com.aquima.interactions.foundation.report.ReportingVisitorDS
addError, addMessage, beginScope, endScope, getCategory, getReport
-
Constructor Details
-
ReportingConstraintVisitor
-
-
Method Details
-
addConstraint
Description copied from interface:IConstraintVisitor
The data layer implementation should invoke this addConstraint method for each constraint that should be added to the rule engine.- Specified by:
addConstraint
in interfaceIConstraintVisitor
- Parameters:
constraint
- The constraint that should be added to the rule engine.
-
addExternalConstraint
Description copied from interface:IConstraintVisitor
The data layer may invoke this method to add an external constraint rule. The rule factory will be used to locate the implementation for the constraint.- Specified by:
addExternalConstraint
in interfaceIConstraintVisitor
- Parameters:
ruleDS
- Data source providing information about the external constraint rule.
-
addTable
Description copied from interface:IConstraintVisitor
This method can be used to add a decision table to a specific attribute as constraint. The decision table should evaluate to a set of values that are valid for the attribute.- Specified by:
addTable
in interfaceIConstraintVisitor
- Parameters:
targetAttribute
- The attribute for which the decision table applies.tableDS
- Data source containing the definition of the decision table.
-
getMetaModel
Description copied from interface:IRuleVisitor
This method returns the meta model of the rule engine.- Specified by:
getMetaModel
in interfaceIRuleVisitor
- Returns:
- the meta model of the rule engine.
-
getParser
Description copied from interface:IRuleVisitor
This method returns the expression parser of the rule engine which may be used to parse expressions and dynamic texts.- Specified by:
getParser
in interfaceIRuleVisitor
- Returns:
- the expression parser of the rule engine.
-