Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] Assigning attributes to target class using HOT
[ATL] Assigning attributes to target class using HOT [message #725040] Tue, 13 September 2011 19:07 Go to next message
Subhav Pradhan is currently offline Subhav PradhanFriend
Messages: 8
Registered: July 2011
Location: Nashville, Tennessee
Junior Member

Hi,

Another newbie question. I am working on writing a HOT and I am running into a very simple problem for which I have not been able to find any solution in the available documentations.

I have created an EClass--C and EAttribute--A in my target metamodel using different rules but now I am having problem assigning attribute A to class C. I have tried changing the value of eAttribute for my class C but I get error saying that the field eAttribute is not changeable.

Any help would be much appreciated!

Subhav

[Updated on: Tue, 13 September 2011 19:08]

Report message to a moderator

Re: [ATL] Assigning attributes to target class using HOT [message #725218 is a reply to message #725040] Wed, 14 September 2011 09:30 Go to previous messageGo to next message
Sylvain EVEILLARD is currently offline Sylvain EVEILLARDFriend
Messages: 523
Registered: July 2009
Senior Member
you have to use the eStructuralFeatures reference.
eAttribute is a derived attribute that uses the eStructuralFeatures reference.
Re: [ATL] Assigning attributes to target class using HOT [message #725442 is a reply to message #725218] Wed, 14 September 2011 19:39 Go to previous message
Subhav Pradhan is currently offline Subhav PradhanFriend
Messages: 8
Registered: July 2011
Location: Nashville, Tennessee
Junior Member

Ahh! As easy as that. Thanks much Sylvain. You help is very appreciated!

Subhav
Previous Topic:[ATL] EMF VM testing
Next Topic:ATL Development Tools
Goto Forum:
  


Current Time: Mon Dec 22 15:08:01 GMT 2014

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

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