Class Condition

java.lang.Object
com.aquima.interactions.rule.impl.table.Condition
All Implemented Interfaces:
Comparable<Condition>

public class Condition extends Object implements Comparable<Condition>
This class holds the data of a single condition from a decision table.
Since:
5.0
Author:
O. Kerpershoek
  • Constructor Details

    • Condition

      protected Condition(int index, IConditionDS datasource)
  • Method Details

    • compareTo

      public int compareTo(Condition other)
      Specified by:
      compareTo in interface Comparable<Condition>
    • getSequenceNr

      public int getSequenceNr()
    • getIndex

      public int getIndex()
      This method return the original index of the condition as it was in the studio model.
      Returns:
      the original index of the condition.
    • getConditionExpression

      public String getConditionExpression()
      This method returns the expression that should be used as condition.
      Returns:
      the expression that should be used as condition.
    • getAlternativeExpression

      public String getAlternativeExpression()
      This method returns the expression that should be used as alternative (value).
      Returns:
      the expression that should be used as alternative (value).
    • getActions

      public Action[] getActions()
      This method returns an array of actions of this condition node. If this condition node does not have any actions, an empty array is returned.
      Returns:
      an array of actions of this condition node.
    • getConditions

      public Condition[] getConditions()
      This method returns an array containing the sub conditions of this condition node. If this condition node does not have any sub conditions, an empty array is returned.
      Returns:
      an array containing the sub conditions of this condition node.
    • toString

      public String toString()
      Overrides:
      toString in class Object