|Re: [M2M] How to transform UML2 model to EMF model [message #516291 is a reply to message #516271]
||Tue, 23 February 2010 14:20
| Erhard Weinell
Registered: January 2010
Location: Kassel, Germany
Am 23.02.2010 14:14, schrieb Joachim Habib:
> Now, I create a new UML diagram based on my UML profile. As I know, xmi
> of this this model is EMF based.
> I would like to transform my UML xmi to an Ecore model based on my Ecore
> meta model. Result of this operation should be exactly the same than if
> I had design my EMF model with an generated editor from my meta model.
how would you (generically) map UML superstructure features to your
ecore model, e.g. StructuredClassifier.ownedAttribute representing a
classifier's attributes? In order to be fully aligned with an ecore
model, your profile would have to define each of these relations
explicitly between its stereotypes. Actually this IS technically
possible. However, the virtue of profiles is the functionality provided
by the UML core, which would be lost in this case.
However, you may of course define model transformations for a specific
profile / ecore model e.g. using M2T Xtend (with the UML2MetaModel
enabled). It might also work with ATL, haven't checked this though.
Powered by FUDForum
. Page generated in 0.01390 seconds