Class DefaultExternalRuleDS
java.lang.Object
com.aquima.interactions.rule.inference.defaults.DefaultExternalRuleDS
- All Implemented Interfaces:
IReportingDS
,IExternalRuleDS
,IRuleDS
Internal class that wraps a default rule datasource to implement an external rule datasource.
- Since:
- 8.0
- Author:
- Jon van Leuven
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addMessage
(ErrorCode code, String[] parameters, Severity severity) This method will add an initialization error to the report for the specified error code and parameters.getName()
This method returns the name of the external rule that should be used.String[]
This method returns an array containing the names of the rule groups the rule belongs to.String[]
This method returns an array containing the names of the attributes the rule operates on.void
This method should iterate all the justification texts that are available for this rule, and add them to the supplied visitor.
-
Constructor Details
-
DefaultExternalRuleDS
-
-
Method Details
-
getName
Description copied from interface:IExternalRuleDS
This method returns the name of the external rule that should be used.- Specified by:
getName
in interfaceIExternalRuleDS
- Returns:
- the name of the external rule that should be used.
-
getTargetAttributes
Description copied from interface:IExternalRuleDS
This method returns an array containing the names of the attributes the rule operates on.- Specified by:
getTargetAttributes
in interfaceIExternalRuleDS
- Returns:
- an array containing the names of the attributes the rule operates on.
-
iterateJustifications
Description copied from interface:IExternalRuleDS
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 interfaceIExternalRuleDS
- Parameters:
visitor
- The visitor to which the justifications of this rule should be added.
-
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.
-
addMessage
Description copied from interface:IReportingDS
This method will add an initialization error to the report for the specified error code and parameters.- Specified by:
addMessage
in interfaceIReportingDS
- Parameters:
code
- Error code identifying the message.parameters
- Optional array of parameters for the message.severity
- The severity of the message.
-