Bug 157982 - Support for conversion of owned ends
Summary: Support for conversion of owned ends
Status: NEW
Alias: None
Product: MDT.UML2
Classification: Modeling
Component: Core (show other bugs)
Version: 2.0.0   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: UML2 Inbox CLA
QA Contact:
URL:
Whiteboard: Release Currency
Keywords: plan
: 213894 (view as bug list)
Depends on: 105920
Blocks:
  Show dependency tree
 
Reported: 2006-09-20 09:15 EDT by Alexander Nyßen CLA
Modified: 2010-05-28 14:55 EDT (History)
6 users (show)

See Also:


Attachments
UML patterns (8.19 KB, application/octet-stream)
2008-01-14 17:31 EST, Kenn Hussey CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Nyßen CLA 2006-09-20 09:15:54 EDT
UML2 Superstructure 2.1 says: "An end property of an association that is owned
by an end class or that is a navigable owned end of the association indicates
that the association is navigable from the opposite ends, otherwise the
association is not navigable from the opposite ends."

It would be nice if the UML2EcoreConverter would support tranformation of properties that are specified using the second of the above mentioned options also.
Comment 1 Alexander Nyßen CLA 2006-09-20 09:16:58 EDT
Bug #157976  should first be resolved, as this would allow for an easier implementation here.
Comment 2 Kenn Hussey CLA 2006-09-20 23:42:00 EDT
Only ends that are owned by end types are mapped to Ecore references; if, at some point in the future, EMF provides support for the concept of "associations", conversion of ends owned by associations could be revisited.
Comment 3 Al B CLA 2007-12-03 00:37:11 EST
Bug #157976 has already been fixed for awhile so has this been fixed too?
Comment 4 Al B CLA 2007-12-03 00:44:14 EST
Does Bug #105920 still needs to be resolved before this one can be fixed?
Comment 5 Kenn Hussey CLA 2007-12-03 11:29:10 EST
Yes, EMF would need to provide support for modeling associations (as per comment #2).
Comment 6 Kenn Hussey CLA 2008-01-03 12:59:37 EST
*** Bug 213894 has been marked as a duplicate of this bug. ***
Comment 7 Kenn Hussey CLA 2008-01-10 16:41:08 EST
Support for conversion of owned (by the association) member ends, if/when provided, will ignore navigability since association ends are always navigable (and always have a multiplicity of 1) from the perspective of their instances (links).
Comment 8 Kenn Hussey CLA 2008-01-14 17:31:27 EST
Created attachment 86883 [details]
UML patterns

Here is a model containing the UML structures that would map to the corresponding structures in the Ecore model Ed attached to bug 105920. Note that associations can be substituted for association classes in all cases except for 'zeroOwnedEnds' (since, in the absence of owned attributes, no value would be added).
Comment 9 Kenn Hussey CLA 2008-02-27 20:44:29 EST
Don't forget to update the Ecore profile so that the EClass stereotype can be applied to associations.