Chapter 9 Generation Reference Guide (GTL)


collection macro

This macro returns a collection of objects based on the specified scope and condition. Collections are represented as the concatenation of semi-colon terminated OID.

For example, a collection containing a single element:

E40D4254-DA4A-4FB6-AEF6-3E7B41A41AD1;

A collection of three element:

C3ADA38A-994C-4E15-91B2-08A6121A514C;58CE2951-7782-49BB-B1BB-55380F63A8C9;F522C0AE-4080-41C2-83A6-2A2803336560;

.collection '(' <collection-scope> [',' <filter>] ')'

Parameters

Parameter Type Description
<collection-scope> <simple-template> returning a collection scope Scope over which we should iterate.
<filter> <condition> Filter condition

Example:

The following macro returns a subset of the attributes defined on the current classifier whose code starts with a letter between a and e included.

.object(Attributes, (%.1:Code% >= a) and (%.1:Code% <= e))

 


Copyright (C) 2005. Sybase Inc. All rights reserved.