Class RepeatExpression

java.lang.Object
com.aquima.interactions.composer.model.definition.RepeatExpression
All Implemented Interfaces:
IRepeatExpression

public class RepeatExpression extends Object implements IRepeatExpression
IRepeatExpression implementation.
Since:
7.0
Author:
Jon van Leuven
  • Constructor Details

    • RepeatExpression

      public RepeatExpression(IExpression repeatExpression, String sortAttribute, boolean sortAscending, AbstractReference noResultElement)
      The constructor with optional arguments.
      Parameters:
      repeatExpression - The expression that should result in instances, mandatory.
      sortAttribute - Optional attribute used for sorting the instances.
      sortAscending - Optional flag indicating the sort order.
      noResultElement - Optional reference to an element that should be used when the repeat expression results in no instances.
    • RepeatExpression

      protected RepeatExpression(IExpression repeatExpression, String sortAttribute, boolean sortAscending, AbstractReference noResultElement, boolean relationAttribute)
  • Method Details

    • getExpression

      public IExpression getExpression()
      Description copied from interface: IRepeatExpression
      This method returns the expression that result in instances.
      Specified by:
      getExpression in interface IRepeatExpression
      Returns:
      The repeat expression, never null.
    • isRelationAttribute

      public boolean isRelationAttribute()
      This method returns a flag indicating if the repeat expression is a relation attribute.
      Specified by:
      isRelationAttribute in interface IRepeatExpression
      Returns:
      Flag indicating if the repeat expression is a relation attribute.
    • isSortAscending

      public boolean isSortAscending()
      Description copied from interface: IRepeatExpression
      This method returns the optional flag indicating the sort order.
      Specified by:
      isSortAscending in interface IRepeatExpression
      Returns:
      Flag indicating the sort order.
    • getSortAttribute

      public String getSortAttribute()
      Description copied from interface: IRepeatExpression
      This method returns the optional attribute used for sorting the instances.
      Specified by:
      getSortAttribute in interface IRepeatExpression
      Returns:
      The attribute name, may be null.
    • getNoResultElement

      public AbstractReference getNoResultElement()
      Description copied from interface: IRepeatExpression
      This method returns the optional reference to an element that should be used when the repeat expression results in no instances.
      Specified by:
      getNoResultElement in interface IRepeatExpression
      Returns:
      The element reference, may be null.
    • toString

      public String toString()
      Overrides:
      toString in class Object