Contents > 7 SDMetrics Metamodel and XMI Transformation Files > 7.2 XMI Transformation Files > 7.2.1 XMI Transformation File Format
7.2.1 XMI Transformation File Format
An XMI transformation file is an XML file of the following format (see
Appendix E: "Project File Format Definitions" for a formal definition):
<xmitransformations version="2.1" >
<xmitransformation ...xmitransformation attributes... />
<trigger ...trigger attributes... />
<trigger ...trigger attributes... />
...
</xmitransformation>
<xmitransformation ...xmitransformation attributes... />
<trigger ...trigger attributes... />
...
</xmitransformation>
...
</xmitransformations>
The transformation file defines a list of xmitransformation elements,
each of which has a list of triggers. Each xmitransformation element
provides XMI information for one SDMetrics metamodel element, each
trigger provides XMI information for one attribute of the metamodel
element.
The root element xmitransformations encloses the list of XMI
transformations. Its attribute "version" (required) indicates the
SDMetrics version number for which the XMI transformation file has
been created (currently, this is version "2.1"). This should not be
confused with the XMI version number (which is not specified
explicitly in the file, but specified externally, see Section 4.16.1 "Project File Sets").
| Prev |
Up |
Next |
| Section 7.2 "XMI Transformation Files" | Contents | Section 7.2.2 "XMI Transformations and Triggers" |