.. ******************************************************************************* * MetaFactory.io R2 * Technical Documentation * * File name : ModRef_Metadata.rst * Created by : Marnix Bochove (original text) * * MetaFactory BV Amsterdam ******************************************************************************* .. include:: /inline-images.txt Metadata ======== MetaFactory allows the addition of metadata to various levels of the model tree. For every Package, Object and Attribute/Reference, any number of metadata can be defined. |Eye M| You are completely free to define the names of the metadata as well as how you use them in your Code Instructions. Nothing is predefined by MetaFactory and metadata don’t have any meaning when there is no Code Instruction that actively reads them out. Think of it as ‘toggles’ that you introduce to help your Code Instruction acquire the necessary input data to control its behaviour. It is the job of your Code Instruction to properly process whatever you choose to define there. :numref:`MR-metadata-01` defines four metadata: two inside the scope of the package ‘yourModelPackage’ (yourProperty1 en yourProperty2) and two metadata in the scope of the object ‘yourModelObject01’ (yourPropertyA en yourPropertyA). |Exclam S| The must be placed as the first element in the scope of or . .. code-block:: xml :caption: Metadata example :name: MR-metadata-01 :linenos: :emphasize-lines: 4,5,10,11 yourPropertyValue1 yourPropertyValue2 yourPropertyValueA yourPropertyValueA ... .. rubric:: Attributes There are no attributes for . .. rubric:: Sub elements Every sub element is a property, with the tag name as the name of the property.