Skip to main content



      Home
Home » Archived » M2M (model-to-model transformation) » [ATL] getValue on ATL Map returns OclUndefined
[ATL] getValue on ATL Map returns OclUndefined [message #694132] Thu, 07 July 2011 17:47 Go to next message
Eclipse UserFriend
Hi,

in one of my transformations I currently make use of an ATL specific
map, storing static transformation related information, i.e.:

helper def : MAP : Map(UML!EnumLiteral, String) =
Map{
(#Literal1, 'sampleString1'),
(#Literal2, 'sampleString2')
};

so far the definition of the map and also referencing it works
seamlessly, however, whenever trying to retrieve a stored value from the
map by using the get() operation (from inside another helper), i.e.:

thisModule.MAP.get(#Literal1)

simply an object of type OclUndefined is returned, yet no exception or
anything else is thrown. So my question now is, why doesn't get()
actually return an object of type String, but instead returns an object
of type OclUndefined, although the declaration of the map clearly states
that it contains String objects? Am I missing something?

Thanks a lot for any help!

Cheers,

Philipp
Re: [ATL] getValue on ATL Map returns OclUndefined [message #694249 is a reply to message #694132] Fri, 08 July 2011 03:44 Go to previous messageGo to next message
Eclipse UserFriend
Maybe this is because of the enum, try using the corresponding literal in String
Re: [ATL] getValue on ATL Map returns OclUndefined [message #694294 is a reply to message #694249] Fri, 08 July 2011 05:27 Go to previous message
Eclipse UserFriend
On 07/08/2011 09:44 AM, Sylvain EVEILLARD wrote:
> Maybe this is because of the enum, try using the corresponding literal
> in String
Hi Sylvain,

again, thanks for your fast reply and help!

Cheers,

Philipp
Previous Topic:[ATL] getValue on ATL Map returns OclUndefined
Next Topic:(no subject)
Goto Forum:
  


Current Time: Wed Jul 23 17:49:14 EDT 2025

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

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

Back to the top