Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] conflict between metamodel and MOF
[ATL] conflict between metamodel and MOF [message #45205] Fri, 08 June 2007 09:59 Go to next message
Eclipse UserFriend
Originally posted by: djodjo91.free.fr

Hi,
i have a little problem of name conflict between my metamodel and mof
attribute. In my metamodel i have a templateSignature which has
ownedTemplateParameter attributes. The problem is when i try to do
something like :

templateSignature.ownedTemplateParameter->append(templateParameter)
i have an error in my transfo "ERROR : could not find operation append on
MOF!EClass...".

A solution would be to change the name attribute in my metamodel (for
example ownedTemplateParameter would be ownedTemplateParam) but i was
wondering if there could be a way to force the use of my metamodel
attribute ?
I hope people who will read my post will understand what i mean, sorry for
my bad english.
Re: [ATL] conflict between metamodel and MOF [message #45265 is a reply to message #45205] Fri, 08 June 2007 12:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rchevrel.sodius.com

This is a multi-part message in MIME format.
--------------070102060702050201000303
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 8bit

Hi Jonathan,

I am not sure but try to use double quote like:
templateSignature."ownedTemplateParameter"->append(templateParameter)

Regards,

*R
Re: [ATL] conflict between metamodel and MOF [message #45477 is a reply to message #45265] Mon, 11 June 2007 07:29 Go to previous message
Eclipse UserFriend
Originally posted by: djodjo91.free.fr

hi,
first thank you for your answer Regis. But in fact it was another mistake,
i was calling a rule which doesn't have return element, and i was trying
to do an affectation.
ex : dst.ownedTemplateParameter ->
append(thisModule.createCPPTemplateParameter(a,b)) and
createCPPTemplateParameter(a,b) didn't return anything... :)
regards,
jonathan
Previous Topic:[ATL] Cross references
Next Topic:Simultanious loading of two collections which are brances of the same tree
Goto Forum:
  


Current Time: Sat Dec 21 16:48:42 GMT 2024

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

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

Back to the top