HowTo use meta model class as type or parameter [message #1717516] |
Mon, 14 December 2015 09:09  |
Eclipse User |
|
|
|
Hello,
I'm working on a transformation rule from my own Ecore meta model to the
UML Ecore model. I'm quite new to ATL and want to know, how I can use a
meta model class in a rule, e.g. to set it as a type for a property or
call a ecore method which expects it as parameter.
In particular, I want to create a property with the specific type UML!Element.
Therefore, I use something like
type <- UML!Element
but this is not correct.
In another case, I want to create a UML Extension using the Ecore
Operation Stereotype.createExtension(metaclass: UML!Class, isrequired,
Boolean).
How do I get the type of UML!Class?
Thank you in advance,
Joachim
[Updated on: Mon, 14 December 2015 09:14] by Moderator
|
|
|
|
|
|
|
|
Re: HowTo use meta model class as type or parameter [message #1726271 is a reply to message #1726270] |
Thu, 10 March 2016 15:58  |
Eclipse User |
|
|
|
Wait, I didn't read the second half of your post: your transformation is expecting a UML Type. In that case the metamodel in your launch config should be the Ecore UML metamodel as I posted previously, and the model should be the UML metamodel expressed in UML itself.
P.S. if it this point you still don't get it to work, you had better attach an example zipped eclipse project to demonstrate what it is you want.
|
|
|
Powered by
FUDForum. Page generated in 0.14151 seconds