Class XmlDefaultRuleDS
java.lang.Object
com.aquima.interactions.foundation.report.ReportingDS
com.aquima.interactions.rule.ds.xml.r12.parsing.XmlRuleDS
com.aquima.interactions.rule.ds.xml.r12.parsing.XmlDefaultRuleDS
- All Implemented Interfaces:
IReportingDS
,IDefaultRuleDS
,IRuleDS
Xml datasource implementation.
- Since:
- 7.3
- Author:
- Danny Roest
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
XmlDefaultRuleDS
(IInitializationReport report, IXmlNode node, XmlRuleEngineDS ruleEngine) -
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.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.rule.ds.xml.r12.parsing.XmlRuleDS
getRuleGroupNames
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
Methods inherited from interface com.aquima.interactions.rule.ds.IRuleDS
getRuleGroupNames
-
Constructor Details
-
XmlDefaultRuleDS
-
-
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.
-
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.
-
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.
-
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.
-
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.
-