Macros
Macros provide access to element fields within the UML model and are also used to structure the generated output. All macros are enclosed within percent (%) signs. The CTF contains six basic types of macros:
- Template substitution macros
- Field substitution macros
- Tagged Value substitution macros
- Control macros
- Function macros
- EASL code generation macros
In general, macros (including the % delimiters) are substituted with literal text in the output. For example consider the following item from the Class Declaration template:
... class %className% ...
The field substitution macro, %className%, would result in the current Class name being substituted in the output. So if the Class being generated was named Foo, the output would be:
... class Foo ...
The material ("material" includes all pages, documents and on-line graphics) on this web site is protected by copyright law. (C) 1998-2010 Sparx Systems Pty Ltd.