[#metatype typeName]
where:
uml21.Class).The metatype directive is used to specify the metatype for which the contained scripts apply.
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]