Prerequisites
Description
The following snippet (sourced from paragraph 7.10 from the XMI spec) shows that a valid model can contain a flat list of XmiElements where als the "owned" or composite aggregation items can be references to other XML Elements in the doc:
<?xml version="1.0" encoding="utf-8"?>
<xmi:XMI xmlns:uml="http://www.omg.org/spec/UML/20131001" xmlns:xmi="http://www.omg.org/spec/XMI/20131001">
<uml:Operation xmi:id="idO1" xmi:type="uml:Operation" xmi:label="op1" xmi:uuid="DCE:1234">
<ownedRule xmi:id="idC1" xmi:type="uml:Constraint" xmi:label="co1" xmi:uuid="DCE:abcd">
<specification xmi:type="uml:OpaqueExpression">
<body>First Constraint definition</body>
</specification>
<constrainedElement xmi:idref="idO1"/>
</ownedRule>
<ownedRule xmi:idref="idC2"/>
<ownedRule xmi:idref="idC3"/>
</uml:Operation>
<uml:Constraint xmi:id="idC2" xmi:type="uml:Constraint" xmi:label="co2" xmi:uuid="DCE:efgh">
<specification xmi:type="uml:OpaqueExpression">
<body>Second Constraint definition</body>
</specification>
<constrainedElement xmi:idref="idO1"/>
</uml:Constraint>
<uml:Constraint xmi:id="idC3" xmi:type="uml:Constraint" xmi:label="co3" xmi:uuid="DCE:ijkl">
<specification xmi:type="uml:OpaqueExpression">
<body>Third Constraint definition</body>
</specification>
</uml:Constraint>
</xmi:XMI>
Steps to Reproduce
try to read the snippet with the XmiReader and notice that the reader fails
System Configuration
Prerequisites
Description
The following snippet (sourced from paragraph 7.10 from the XMI spec) shows that a valid model can contain a flat list of XmiElements where als the "owned" or composite aggregation items can be references to other XML Elements in the doc:
Package,ModelandProfile. The read method needs to be code generated such that all concrete classes can be read<constrainedElement xmi:idref="idO1"/>or<ownedRule href="doc2.xml#idC4"/>for contained elements (composite aggregationSteps to Reproduce
try to read the snippet with the XmiReader and notice that the reader fails
System Configuration