Class DataRuleDefinition

java.lang.Object
com.aquima.interactions.rule.impl.datarule.DataRuleDefinition
All Implemented Interfaces:
IDataRuleDefinition

public class DataRuleDefinition extends Object implements IDataRuleDefinition
This class holds the definition of a single data rule. This definition is used by inference rules.
Since:
8.3
Author:
Jon van Leuven
  • Constructor Details

  • Method Details

    • addCondition

      protected void addCondition(ConditionDefinition def)
    • addTarget

      protected void addTarget(TargetDefinition def)
    • getConnectionName

      public String getConnectionName()
      Description copied from interface: IDataRuleDefinition
      This method returns the connection name if the datarule has one.
      Specified by:
      getConnectionName in interface IDataRuleDefinition
      Returns:
      The name of the connection this datarule uses, may be null.
    • getTypeName

      public String getTypeName()
      Description copied from interface: IDataRuleDefinition
      This method returns the type of data rule.
      Specified by:
      getTypeName in interface IDataRuleDefinition
      Returns:
      The datarule type, never null.
    • getConditions

      public IConditionDefinition[] getConditions()
      Description copied from interface: IDataRuleDefinition
      This method returns the conditions for this data rule.
      Specified by:
      getConditions in interface IDataRuleDefinition
      Returns:
      The condition definitions, never null, but may be an empty array.
    • getName

      public String getName()
      Description copied from interface: IDataRuleDefinition
      This method returns the unique name for the data rule.
      Specified by:
      getName in interface IDataRuleDefinition
      Returns:
      the unique name for the data rule.
    • getRuleGroupNames

      public String[] getRuleGroupNames()
      Description copied from interface: IDataRuleDefinition
      This method returns an array containing the names of the rule groups this 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 IDataRuleDefinition
      Returns:
      an array containing the names of the rule groups this rule belongs to.
    • getTargets

      public ITargetDefinition[] getTargets()
      Description copied from interface: IDataRuleDefinition
      This method returns the targets for this data rule.
      Specified by:
      getTargets in interface IDataRuleDefinition
      Returns:
      The target definitions, never null, but may be an empty array.
    • getJustificationInfo

      public JustificationInfo getJustificationInfo()
      Description copied from interface: IDataRuleDefinition
      This method returns an optimized object containing all the justifications of the rule.
      Specified by:
      getJustificationInfo in interface IDataRuleDefinition
      Returns:
      an optimized object containing all the justifications of the rule.