.. ******************************************************************************* * MetaFactory.io R2 * Technical Documentation * * File name : EL_Variables.rst * Created by : Niels de Nies * Last update : 01-04-2021 * Updated by : Niels de Nies * * MetaFactory BV Amsterdam ******************************************************************************* .. include:: /inline-images.txt .. include:: /external-links.txt Variables ========= The following variables can be used in expressions: .. list-table:: :widths: 30 10 60 :header-rows: 1 :class: tight-table * - Variable Name - Type - Description * - ${attribute.XXX} - String - Value of attribute XXX of the current model attribute, e.g.${attribute.name} * - ${codeinstruction.metadata.XXX} - String - Value of the codeinstruction metadata with the name XXX. For use of codeinstruction metadata |Loupe S| TutorialsExample3_ * - **${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.java.field.XXX} - String - Value of attribute XXX of the field generated at this moment. e.g.: ${generated.java.field.type}. Supported attributes are name, dataType, access, body and visibility. * - ${generated.java.class.XXX} - String - Value of attribute XXX of the class generated at this moment. e.g.: ${generated.java.class.name}. Supported attributes are name and genericType. * - ${generated.java.interface.XXX} - String - Value of attribute XXX of the interface generated at this moment. e.g.: ${generated.java.interface.name} Supported attributes are name and genericType. * - ${generated.java.method.XXX} - String - Value of attribute XXX of the method generated at this moment. e.g.: ${generated.java.method.visibility}. Supported attributes are name and visibility. * - ${generated.java.package.XXX} - String - Value of attribute XXX of the package generated at this moment. e.g.: ${generated.java.package.name} Supported attributes are name and path. * - ${generated.java.parameter.XXX} - String - Value of attribute XXX of the parameter generated at this moment. e.g.: ${generated.parameter.name}. Supported attributes are name and type. * - ${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} * - ${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} .. ${var20} - String - Value of the internal codeinstruction variables var0 to var20. The value of this variable can be put in the codeinstruction via the var(0) .. var(20) attribute. See the codeinstruction documentation (or codeinstruction.xsd) for the authorised locations.