Skip to main content



      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 14:15 Go to next message
Eclipse UserFriend
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 04:54 Go to previous messageGo to next message
Eclipse UserFriend
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 05:20 Go to previous message
Eclipse UserFriend
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: Sun Apr 27 01:44:19 EDT 2025

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

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

Back to the top