| accessing base_Classifier [message #1004431] |
Wed, 23 January 2013 03:16  |
Claudio Persico Messages: 24 Registered: November 2012 |
Junior Member |
|
|
Hi to everybody,
I'm writing an ATL transformation involving profiles.
I'm looking for a way to access the "base_Classifier" field (in my case of a stereotype).
There's a way to do that, I don't know, something like __xmiID__ for accessing the xmi:id field?
Thanks in advance,
Claudio
|
|
|
| Re: accessing base_Classifier [message #1004504 is a reply to message #1004431] |
Wed, 23 January 2013 06:09   |
Hugo Bruneliere Messages: 448 Registered: July 2009 |
Senior Member |
|
|
Hello,
Yes the __xmiID__ attribute exists on UML model elements.
You could also look to this recent thread that could be relevant in your case.
Best regards,
Hugo
------------------------------------------
Hugo Bruneliere - R&D Engineer
AtlanMod research team (Inria, EMN & LINA)
Ecole des Mines de Nantes
Nantes - France
------------------------------------------
|
|
|
|
| Re: accessing base_Classifier [message #1004596 is a reply to message #1004516] |
Wed, 23 January 2013 09:13   |
Hugo Bruneliere Messages: 448 Registered: July 2009 |
Senior Member |
|
|
In order to know the available attributes from a given model element, you can either browse the UML2 metamodel (using the MoDisco Model Browser for instance) or rely on the ATL content assist.
Hugo
------------------------------------------
Hugo Bruneliere - R&D Engineer
AtlanMod research team (Inria, EMN & LINA)
Ecole des Mines de Nantes
Nantes - France
------------------------------------------
|
|
|
|
|
|
| Re: accessing base_Classifier [message #1004675 is a reply to message #1004671] |
Wed, 23 January 2013 11:37   |
Hugo Bruneliere Messages: 448 Registered: July 2009 |
Senior Member |
|
|
Just one general comment: from experience, when developing a model transformation, I would advice you to always have the corresponding metamodel(s) opened into an appropriate Model Browser as your "reference documentation/guide".
The content assist is just an extra-facility to gain time when writing down the actual transformation code.
Hugo
------------------------------------------
Hugo Bruneliere - R&D Engineer
AtlanMod research team (Inria, EMN & LINA)
Ecole des Mines de Nantes
Nantes - France
------------------------------------------
|
|
|
| Re: accessing base_Classifier [message #1004986 is a reply to message #1004675] |
Thu, 24 January 2013 04:14  |
Sylvain EVEILLARD Messages: 483 Registered: July 2009 |
Senior Member |
|
|
It's kinda hard for UML2 profiles as you tend to think of them as extensions but they are actually metamodels, stereotypes being meta-classes.
If you use one single profile you can probably use it as the metamodel instead of UML2, as they include the UML2 metamodel.
Not sure if this will work for the ATL content assist though.
|
|
|
Powered by
FUDForum. Page generated in 0.08310 seconds