4.6.2. Variables

The following variables can be used in expressions:

Variable Name

Type

Description

${attribute.XXX}

String

Value of attribute XXX of the current model attribute, e.g.${attribute.name}

${fmsnippet.xx.yy.zz}

String

Value of the result from parsing the freemarker file with the name zz.ftl. This freemarker file is found in the snippets folder of the project in subfolder xx/yy/

${forEachPropertyValue}

String

Value of the property (with the name yyy.zzz) that with foreach={xxx.property.yyy.zzz} is iterated over. This mechanism cannot be used overall yet.

${generated.attribute.XXX}

String

value of attribute XXX of the attribute generated at this moment. e.g.: ${generated.attribute.type}.

Supported attributes are name, dataType, access, body, visibility, apiComment and developerComment.

${generated.class.XXX}

String

value of attribute XXX of the class generated at this moment. e.g.: ${generated.class.name}.

Supported attributes are name, genericType, apiComment and developerComment.

${generated.interface.XXX}

String

value of attribute XXX of the interface generated at this moment. e.g.: ${generated.class.name}

Supported attributes are name, genericType, apiComment and developerComment.

${generated.operation.XXX}

String

value of attribute XXX of the operation generated at this moment. e.g.: ${generated.operation.visibility}.

Supported attributes are name, visibility, apiComment and developerComment.

${generated.package.XXX}

String

value of attribute XXX of the package generated at this moment. e.g.: ${generated.package.name}

Supported attributes are name, path, apiComment and developerComment.

${generated.parameter.XXX}

String

value of attribute XXX of the parameter generated at this moment. e.g.: ${generated.operation.name}.

Supported attributes are name, type, apiComment and developerComment.

${model.property.attribute.XXX}

String

value of the model property with the name XXX from the current model attribute

${model.property.object.XXX}

String

value of the model property with the name XXX from the current model object

${model.property.package.XXX}

String

value of the model property with the name XXX from the current model package

${model.property.reference.object.XXX}

String

value of the model property with the name XXX.

This property is found in the model object that belongs to the type of current model reference

${model.property.reference.XXX}

String

value of the model property with the name XXX from the current model reference

${object.XXX}

String

Value of attribute XXX of the current model object, e.g. ${object.name}

${operation.XXX}

String

Value of attribute XXX of the current model operation, e.g. ${operation.name}

${package.XXX}

String

Value of attribute XXX of the current model package, e.g. ${package.name}

${pattern.property.XXX}

String

value of the pattern property with the name XXX. See example 3 for use of pattern property

${previousObject.XXX}

String

Value of attribute XXX of the previous model object, e.g. ${previousObject.name}

${previousPackage.XXX}

String

Value of attribute XXX of the previous model package, e.g. ${previousPackage.name}

${reference.XXX}

String

Value of attribute XXX of the current model reference, e.g. ${reference.multiplicity}

${snippet.xx.yy.zz}

String

Returns the result from parsing the velocity file with the name zz.vm.

This velocity file is found in the snippets folder of the project in subfolder xx/yy/

${var0}

String

Value of the internal pattern variable var0.

The value of this variable can be put in the pattern via the var0 attribute. See the pattern documentation (or pattern.xsd) for the authorised locations.

${var1}

String

Value of the internal pattern variable var1.

The value of this variable can be put in the pattern via the var1 attribute. See the pattern documentation (or pattern.xsd) for the authorised locations.

${var2}

String

Value of the internal pattern variable var2.

The value of this variable can be put in the pattern via the var2 attribute. See the pattern documentation (or pattern.xsd) for the authorised locations.

${var3}

String

Value of the internal pattern variable var3.

The value of this variable can be put in the pattern via the var3 attribute. See the pattern documentation (or pattern.xsd) for the authorised locations.

${var4}

String

Value of the internal pattern variable var4.

The value of this variable can be put in the pattern via the var4 attribute. See the pattern documentation (or pattern.xsd) for the authorised locations.

${var5}

String

Value of the internal pattern variable var5.

The value of this variable can be put in the pattern via the var5 attribute. See the pattern documentation (or pattern.xsd) for the authorised locations.