Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] UML profiles, enumerations, same literals in in and out
[ATL] UML profiles, enumerations, same literals in in and out [message #62850] Thu, 27 September 2007 18:15 Go to next message
Javi is currently offline JaviFriend
Messages: 23
Registered: July 2009
Junior Member
Hello again,

My input model is UML2 + Profile.
In this profile, it is defined an enumeration called Animal.
My output model is an ECore mm with an EEnum type called Animal
The labels of both enumerations are the same with the same name.

How can I map the literals from the input into the output?

With the following code, I got no luck.

helper def : animalMap : Map(UML2!EnumerationLiteral, MM!Animal) =
Map {(#dog, #dog), ...};

helper def : getAnimal(v : UML2!EnumerationLiteral) : MM!Animal =
thisModule.animalMap.get(v);

thx
Re: [ATL] UML profiles, enumerations, same literals in in and out [message #63112 is a reply to message #62850] Fri, 28 September 2007 08:54 Go to previous messageGo to next message
William Piers is currently offline William PiersFriend
Messages: 302
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------030808090302070008030304
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 8bit

Hello,

Javi a
Re: [ATL] UML profiles, enumerations, same literals in in and out [message #63134 is a reply to message #63112] Fri, 28 September 2007 09:20 Go to previous message
Javi is currently offline JaviFriend
Messages: 23
Registered: July 2009
Junior Member
Ok,

It's a solution and it should work.

Even though I agree there should be a better way.

thx
Previous Topic:[ATL] Launch programmatically
Next Topic:inter-model references - java code
Goto Forum:
  


Current Time: Sat Nov 09 05:01:00 GMT 2024

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

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

Back to the top