Class RepeatExpression
java.lang.Object
com.aquima.interactions.composer.model.definition.RepeatExpression
- All Implemented Interfaces:
IRepeatExpression
IRepeatExpression implementation.
- Since:
- 7.0
- Author:
- Jon van Leuven
-
Constructor Summary
ConstructorsModifierConstructorDescriptionRepeatExpression
(IExpression repeatExpression, String sortAttribute, boolean sortAscending, AbstractReference noResultElement) The constructor with optional arguments.protected
RepeatExpression
(IExpression repeatExpression, String sortAttribute, boolean sortAscending, AbstractReference noResultElement, boolean relationAttribute) -
Method Summary
Modifier and TypeMethodDescriptionThis method returns the expression that result in instances.This method returns the optional reference to an element that should be used when the repeat expression results in no instances.This method returns the optional attribute used for sorting the instances.boolean
This method returns a flag indicating if the repeat expression is a relation attribute.boolean
This method returns the optional flag indicating the sort order.toString()
-
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
Description copied from interface:IRepeatExpression
This method returns the expression that result in instances.- Specified by:
getExpression
in interfaceIRepeatExpression
- 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 interfaceIRepeatExpression
- 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 interfaceIRepeatExpression
- Returns:
- Flag indicating the sort order.
-
getSortAttribute
Description copied from interface:IRepeatExpression
This method returns the optional attribute used for sorting the instances.- Specified by:
getSortAttribute
in interfaceIRepeatExpression
- Returns:
- The attribute name, may be null.
-
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 interfaceIRepeatExpression
- Returns:
- The element reference, may be null.
-
toString
-