Interface IDataRuleDS
- All Superinterfaces:
IReportingDS
,IRuleDS
- All Known Implementing Classes:
ReportingDataRuleDS
,XmlDataRuleDS
,XmlDataRuleDS
Data source interface for data rules that may be used to inference a value for attributes.
- Since:
- 8.3
- Author:
- Jon van Leuven
-
Method Summary
Modifier and TypeMethodDescriptionThis method returns the name of (resource) connection that is used by this data rule.getName()
This method returns the name of the data rule.This method returns the type name of this data rule.void
iterateConditions
(IConditionVisitor visitor) This method will be invoked by the data rule to request the information of all conditions (also known as criteria) that are defined for this data rule.void
This method should iterate all the justification texts that are available for this rule, and add them to the supplied visitor.void
iterateTargets
(ITargetVisitor visitor) This method will be invoked by the data rule to request the information of all targets (also known as goals) that are defined for this data rule.Methods inherited from interface com.aquima.interactions.foundation.report.IReportingDS
addMessage
Methods inherited from interface com.aquima.interactions.rule.ds.IRuleDS
getRuleGroupNames
-
Method Details
-
getName
String getName()This method returns the name of the data rule.- Returns:
- the name of the data rule.
-
getConnectionName
String getConnectionName()This method returns the name of (resource) connection that is used by this data rule.- Returns:
- the name of the (resource) connection, may not be null.
-
getTypeName
String getTypeName()This method returns the type name of this data rule. (for now only "csvDataRule" can be returned as type name)- Returns:
- the type name of the data rule.
-
iterateConditions
This method will be invoked by the data rule to request the information of all conditions (also known as criteria) that are defined for this data rule.- Parameters:
visitor
- The visitor that should be used to add the condition definitions to.- Throws:
InitializationException
- This exception is thrown when there is an error processing the conditions.
-
iterateTargets
This method will be invoked by the data rule to request the information of all targets (also known as goals) that are defined for this data rule.- Parameters:
visitor
- The visitor that should be used to add the target definitions to.- Throws:
InitializationException
- This exception is thrown when there is an error processing the target.
-
iterateJustifications
This method should iterate all the justification texts that are available for this rule, and add them to the supplied visitor.- Parameters:
visitor
- The visitor to which the justifications of this rule should be added.- Throws:
InitializationException
- This exception is thrown when an invalid justification is added.
-