| Prev - Next - Down | SDMetrics - the UML design measurement tool |
<xmitransformation modelelement="taggedvalue" xmipattern="UML:TaggedValue"
requirexmiid="false">
<trigger name="tag" ...
...
</xmitransformation>
If attribute "requirexmiid" is set to "false", SDMetrics recognizes
XML elements which have no XMI ID, as long as the XML element
specifies no XMI IDREF cross reference either (attribute "xmi.idref" or
"xmi:idref"). This is necessary because XMI 1.x exporters frequently
serialize element cross references in a way that would otherwise
trigger the creation of a new, unwanted, and empty UML model element for
each such cross reference.On rare occasions, you may need to extract information from XML elements that have no XMI ID but do have an XMI IDREF. You can achieve this with the optional attribute "allowxmiidref" as follows:
<xmitransformation modelelement="eaextensionelement" xmipattern="element"
requirexmiid="false" allowxmiidref="true">
<trigger name="elementref" type="attrval" attr="xmi:idref" />
<trigger name="name" ... />
...
</xmitransformation>
By default, "requirexmiid" is "true" and "allowxmiidref" is "false".
| Prev | Up | Next |
| Section 7.2.3.4 "Inherited Attributes and Triggers" | Contents | Section 7.2.3.6 "Conditional XMI Transformations" |