Class XmlDefaultRuleDS

All Implemented Interfaces:
IReportingDS, IDefaultRuleDS, IRuleDS

public class XmlDefaultRuleDS extends XmlRuleDS implements IDefaultRuleDS
Xml datasource implementation.
Since:
7.3
Author:
Danny Roest
  • 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.
    • 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.
    • 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.
    • 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.
    • 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.