[ATL] getValue on ATL Map returns OclUndefined [message #694132] |
Thu, 07 July 2011 21:47 |
Philipp Zech Messages: 96 Registered: July 2009 |
Member |
|
|
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
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03204 seconds