metatype

Syntax

[#metatype typeName]

where:

Description

The metatype directive is used to specify the metatype for which the contained scripts apply.

Examples

This code defines scripts attached to the UML Class type:

[#package com.mycompany.example]

[#metatype uml21.Class]

[#script public qualifiedName]
${self.namespace.name}.${self.name}[/#script]

[#script private anotherScript]
...
[/#script]

Related concepts
Metamodel