Class XmlRuleEngineDS
java.lang.Object
com.aquima.interactions.foundation.report.ReportingDS
com.aquima.interactions.rule.ds.xml.r17.parsing.XmlRuleEngineDS
- All Implemented Interfaces:
IReportingDS
,IRuleEngineDS
Xml datasource implementation.
- Since:
- 7.3
- Author:
- Danny Roest
-
Field Summary
Fields inherited from interface com.aquima.interactions.rule.ds.IRuleEngineDS
CATEGORY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addJustificationAsset
(String textId, String format, IMultilingualText text) boolean
Given a rule that can source a target attribute, it uses source attributes.This function returns the data source for the expression parser.This method returns the version of the parser that should be used.void
iterateConstraints
(IConstraintVisitor visitor) The rule engine will invoke this method to allow the data layer to add constraints for attributes to the rule engine.void
iterateRuleGroups
(IRuleGroupVisitor visitor) The rule engine will invoke this method to allow the data layer to add the rule group definitions to the rule engine.void
iterateSources
(ISourceVisitor visitor) The rule engine will invoke this method to allow the data layer to add to add sources for attributes to the rule engine.void
iterateValidations
(IValidationVisitor visitor) The rule engine will invoke this method to allow the data layer to add a validation rule for an attribute to the rule engine.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
-
allowTargetDowncast
public boolean allowTargetDowncast()Description copied from interface:IRuleEngineDS
Given a rule that can source a target attribute, it uses source attributes. In KS-4.2 one can define A rule that sources Item.price while using the subtype Product in the expression. If the allowTarget upcast function is true the second case: Sourcing with Item.prijs using Product.naam will auto upcast Item.prijs to Product.prijs. This makes the the rule valid and used when product.prijs is requested.- Item.prijs <= Item.naam
- Item.prijs <= Product.naam
- Product.prijs <= Item.naam
- Product.prijs <= Product.naam
- Specified by:
allowTargetDowncast
in interfaceIRuleEngineDS
- Returns:
- boolean indicating if down-casting of rules is allowed.
-
getExpressionEngineDS
Description copied from interface:IRuleEngineDS
This function returns the data source for the expression parser.- Specified by:
getExpressionEngineDS
in interfaceIRuleEngineDS
- Returns:
- The parser data source which is mandatory.
-
getParserVersion
Description copied from interface:IRuleEngineDS
This method returns the version of the parser that should be used. At the moment there are two parser versions available:- Version 4.x and lower, which will only accept expressions in the original syntax.
- Version 5.x or higher, which will accept most of the original syntax and several new expression constructs.
- Specified by:
getParserVersion
in interfaceIRuleEngineDS
- Returns:
- The version of the parser that should be used.
-
iterateConstraints
Description copied from interface:IRuleEngineDS
The rule engine will invoke this method to allow the data layer to add constraints for attributes to the rule engine.- Specified by:
iterateConstraints
in interfaceIRuleEngineDS
- Parameters:
visitor
- The visitor that should be used to add the constraints to.
-
iterateRuleGroups
Description copied from interface:IRuleEngineDS
The rule engine will invoke this method to allow the data layer to add the rule group definitions to the rule engine.- Specified by:
iterateRuleGroups
in interfaceIRuleEngineDS
- Parameters:
visitor
- The visitor that should be used to add the rule groups to.
-
iterateSources
Description copied from interface:IRuleEngineDS
The rule engine will invoke this method to allow the data layer to add to add sources for attributes to the rule engine.- Specified by:
iterateSources
in interfaceIRuleEngineDS
- Parameters:
visitor
- The visitor that should be used to add the source to.
-
iterateValidations
Description copied from interface:IRuleEngineDS
The rule engine will invoke this method to allow the data layer to add a validation rule for an attribute to the rule engine.- Specified by:
iterateValidations
in interfaceIRuleEngineDS
- Parameters:
visitor
- The visitor that should be used to add the validation to.
-
addJustificationAsset
-
getAssets
-