Class ReportingDefaultRuleDS

java.lang.Object
com.aquima.interactions.foundation.report.ReportingDS
com.aquima.interactions.rule.report.ReportingDefaultRuleDS
All Implemented Interfaces:
IReportingDS, IDefaultRuleDS, IRuleDS

public class ReportingDefaultRuleDS extends ReportingDS implements IDefaultRuleDS
IDefaultRuleDS implementation that adds error reporting.
Since:
5.0
Author:
O. Kerpershoek
  • Constructor Details

  • Method Details

    • getAttributeName

      public String getAttributeName()
      Description copied from interface: IDefaultRuleDS
      This method returns the name of the attribute the default is defined for.
      Specified by:
      getAttributeName in interface IDefaultRuleDS
      Returns:
      The name of the attribute the default is defined for.
    • getType

      public DefaultRuleType 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 interface IDefaultRuleDS
      Returns:
      The type of the default.
    • getRuleName

      public String 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 interface IDefaultRuleDS
      Returns:
      the name of the (custom) rule that should be used as default.
    • getRuleGroupNames

      public String[] 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 interface IRuleDS
      Returns:
      an array containing the names of the rule groups the rule belongs to.
    • getDecisionTableTableDS

      public IDecisionTableDS 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 interface IDefaultRuleDS
      Returns:
      The data source for the decision table that should be used as default.
    • getExpression

      public String 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 interface IDefaultRuleDS
      Returns:
      The expression that should be used as default.
    • getValue

      public IValue 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 interface IDefaultRuleDS
      Returns:
      The value that should be used as default.
    • iterateJustifications

      public void iterateJustifications(IJustificationVisitor visitor)
      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 interface IDefaultRuleDS
      Parameters:
      visitor - The visitor to which the justifications of this rule should be added.