Name and Syntax | Returns | Description | |
<Collection1> = <Collection2> <Collection1> = <Entity> | modifies a collection | replaces all elements in <Collection1> with elements of <Collection2> or with <Entity>, provided the new associations are allowed by the Business Vocabulary. | |
<Collection1> += <Collection2> <Collection1> += <Entity> | modifies a collection | Associates all elements of <Collection2> or <Entity> with <Collection1>. Every <Collection> must be expressed as a unique alias. | |
<Collection1> -= <Collection2> | modifies a collection | Disassociates all elements of <Collection2> from <Collection1>. Does not delete the disassociated elements. Every <Collection> must be expressed as a unique alias. | |
<Collection> ->isEmpty | Boolean | Returns a value of true if <Collection> contains no elements | |
<Collection> ->notEmpty | Boolean | Returns a value of true if <Collection> contains at least one element. | |
<Collection> ->exists (<Expression>) | Boolean | Returns a value of true if <Expression> holds true for at least one element of <Collection> | |
<Collection> ->forAll (<Expression>) | Boolean | Returns a value of true if every <Expression> holds true for every element of <Collection> | |
<Collection> ->sortedBy (<Attribute>) | converts a collection into a sequence | Sequences the elements of <Collection> in ascending order, using the value of <Attribute> as the index. <Collection> must be expressed as a unique alias. | |
<Collection> ->sortedByDesc (<Attribute>) | converts a collection into a sequence | Sequences the elements of <Collection> in descending order, using the value of <Attribute> as the index. <Collection> must be expressed as a unique alias. | |
<Collection> ->iterate(<Expression>) | Executes <Expression> for every element in <Collection>. <Collection> must be expressed as a unique alias. | ||
<Collection> ->size | Integer | Returns the number of elements in <Collection>. <Collection> must be expressed as a unique alias. | |
<Collection.attribute> ->sum | Number | Sums the values of the specified <attribute> for all elements in <Collection>. <attribute> must be a numeric data type. | |
<Collection.attribute> ->avg | Number | Averages all of the specified attributes in <Collection>. <Collection> must be expressed as a unique alias. <attribute> must be a numeric data type | |
<Collection.attribute> ->min | Number | Returns the lowest value of <attribute> for all elements in <Collection>. <attribute> must be a numeric data type | |
<Collection.attribute> ->max | Number | Returns the highest value of <attribute> for all elements in <Collection>. <attribute> must be a numeric data type | |
toSet | |||
Collection.toSet | String | Returns a single String that is the set of Strings in this collection. | |
allContain(lookFor) | |||
Collection.allContain (lookFor:String) | Boolean | Determines whether all the strings in this collection contain the lookFor String | |
uniqueCount | |||
Collection.uniqueCount | Integer | Returns the count of the unique Strings in this collection. |