Template Substitution Macros
Template substitution macros correspond to Base templates. These macros result in the execution of the named template. By convention, template macros are named according to Pascal casing.
Structure: %<TemplateName>%
where <TemplateName> can be one of the templates listed below.
When a template is referenced from within another template, it is generated with respect to the elements currently in scope. The specific template is selected based on the stereotypes of the elements in scope.
As noted previously, there is an implicit hierarchy among the various templates. Some care should be taken in order to preserve a sensible hierarchy of template references. For example, it does not make sense to use the %ClassInherits% macro within any of the attribute or operation templates. Conversely, the Operation and Attribute templates are designed for use within the ClassBody template.
The CTF contains the following template substitution macros:
|
|
|
|
|
|
· | AttributeDeclarationImpl |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
· | OperationDeclarationImpl |
|
|
· | LinkedAttributeDeclaration |
|
|
|
|
|
|
|
|
|
|
|
The material ("material" includes all pages, documents and on-line graphics) on this web site is protected by copyright law. (C) 1998-2015 Sparx Systems Pty Ltd.