Class ReportingDefaultRuleDS
java.lang.Object
com.aquima.interactions.foundation.report.ReportingDS
com.aquima.interactions.rule.report.ReportingDefaultRuleDS
- All Implemented Interfaces:
IReportingDS
,IDefaultRuleDS
,IRuleDS
IDefaultRuleDS implementation that adds error reporting.
- Since:
- 5.0
- Author:
- O. Kerpershoek
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ReportingDefaultRuleDS
(IInitializationReport report, IDefaultRuleDS defaultDS) -
Method Summary
Modifier and TypeMethodDescriptionThis method returns the name of the attribute the default is defined for.This method returns the data source for the decision table that should be used as default.This method returns the expression that should be used as default.String[]
This method returns an array containing the names of the rule groups the rule belongs to.This method returns the name of the (custom) rule that should be used as default.getType()
This method returns the type of the default.getValue()
This method returns the value that should be used as default.void
This method should iterate all the justification texts that are available for this rule, and add them to the supplied visitor.Methods inherited from class com.aquima.interactions.foundation.report.ReportingDS
addError, addMessage, getCategory, getReport
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.aquima.interactions.foundation.report.IReportingDS
addMessage
-
Constructor Details
-
Method Details
-
getAttributeName
Description copied from interface:IDefaultRuleDS
This method returns the name of the attribute the default is defined for.- Specified by:
getAttributeName
in interfaceIDefaultRuleDS
- Returns:
- The name of the attribute the default is defined for.
-
getType
Description copied from interface:IDefaultRuleDS
This method returns the type of the default. Depending on the type either the getValue, getDecisionTableDS or the getExpression method will be invoked.- Specified by:
getType
in interfaceIDefaultRuleDS
- Returns:
- The type of the default.
-
getRuleName
Description copied from interface:IDefaultRuleDS
This method returns the name of the (custom) rule that should be used as default. The rule name is only used when the data source returns the DefaultRuleType.EXTERNAL as type.- Specified by:
getRuleName
in interfaceIDefaultRuleDS
- Returns:
- the name of the (custom) rule that should be used as default.
-
getRuleGroupNames
Description copied from interface:IRuleDS
This method returns an array containing the names of the rule groups the rule belongs to. If the rule does not belong to a specific rule group, the returned value may either be null or an empty array. Rules that belong to a rule group will only be evaluated when one (or more) of the rule groups are active. Rule groups are sometimes referred to as rule clusters.- Specified by:
getRuleGroupNames
in interfaceIRuleDS
- Returns:
- an array containing the names of the rule groups the rule belongs to.
-
getDecisionTableTableDS
Description copied from interface:IDefaultRuleDS
This method returns the data source for the decision table that should be used as default. The value is only used when the data source returns the DefaultRuleType.TABLE as type.- Specified by:
getDecisionTableTableDS
in interfaceIDefaultRuleDS
- Returns:
- The data source for the decision table that should be used as default.
-
getExpression
Description copied from interface:IDefaultRuleDS
This method returns the expression that should be used as default. The value is only used when the data source returns the DefaultRuleType.EXPRESSION as type.- Specified by:
getExpression
in interfaceIDefaultRuleDS
- Returns:
- The expression that should be used as default.
-
getValue
Description copied from interface:IDefaultRuleDS
This method returns the value that should be used as default. The value is only used when the data source returns the DefaultRuleType.VALUE as type.- Specified by:
getValue
in interfaceIDefaultRuleDS
- Returns:
- The value that should be used as default.
-
iterateJustifications
Description copied from interface:IDefaultRuleDS
This method should iterate all the justification texts that are available for this rule, and add them to the supplied visitor.- Specified by:
iterateJustifications
in interfaceIDefaultRuleDS
- Parameters:
visitor
- The visitor to which the justifications of this rule should be added.
-