Skip to main content



      Home
Home » Modeling » UML2 » Transforming UML associations to Ecore
Transforming UML associations to Ecore [message #625782] Wed, 26 December 2007 12:55
Eclipse UserFriend
It seems that the UML to Ecore transformation needs to be enhanced to
consider Associations where both ends are owned by the Association. In the
OMG's SBVR cmof metamodel, there is NO use of composition, and all
associations own both property ends. Neither property is composition, nor
navigable.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=213894

I would expect that these associations must be transformed into Ecore
classes. I don't know what tools were used by the SBVR spec authors to
create their XSD for serialized XMI models (apparently not EMF...), but the
cmof associations appear in XSD as shown below, which implies that EMF would
need an EClass for each Association that owns both of its ends.

<xs:element name="placeholderUsesDesignation"
type="sbvr:placeholderUsesDesignation"/>
<xs:complexType name="placeholderUsesDesignation">
<xs:all>
<xs:element name="placeholder" form="unqualified" minOccurs="0">
<xs:complexType>
<xs:attributeGroup ref="xmi:LinkAttribs"/>
</xs:complexType>
</xs:element>
<xs:element name="designation" form="unqualified" minOccurs="0">
<xs:complexType>
<xs:attributeGroup ref="xmi:LinkAttribs"/>
</xs:complexType>
</xs:element>
<xs:element ref="xmi:Extension" minOccurs="0"/>
</xs:all>
<xs:attribute name="placeholder" type="xs:IDREF" use="optional"/>
<xs:attribute name="designation" type="xs:IDREF" use="optional"/>
</xs:complexType>
Previous Topic:CMOF primitive type references
Next Topic:Creating Deployment Diagram programmatically
Goto Forum:
  


Current Time: Sat Jul 12 08:59:31 EDT 2025

Powered by FUDForum. Page generated in 0.03831 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top