Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » Get the Attribute name of a Class in ATL
Get the Attribute name of a Class in ATL [message #1710588] Wed, 07 October 2015 18:20 Go to next message
Saeed Tajfar is currently offline Saeed TajfarFriend
Messages: 5
Registered: September 2015
Junior Member
Hi,
I would like to know how it is possible to map to one of the attributes of the destination class as a value, the NAME of an attribute from the source class; for example; if I have two classes A(attr1,attr2) as the destination and class B(attriB) as source, I would like to set the (value of attr1 ) to "attriB".

But, I don't know how to get "attriB" (the name of the attribute) as an string.

would you please help me?
Thanks a lot.

[Updated on: Wed, 07 October 2015 18:20]

Report message to a moderator

Re: Get the Attribute name of a Class in ATL [message #1710856 is a reply to message #1710588] Fri, 09 October 2015 18:20 Go to previous message
Saeed Tajfar is currently offline Saeed TajfarFriend
Messages: 5
Registered: September 2015
Junior Member
Hi everybody,

let's consider that I have a Source Class called compute, like this "Compute(cpu,ram,disksize)" all the attributes are Estring. I like to map each attribute and its value into a general class called "Properties(Key,Value)" to create Multiple instances of the target Class(Properties). Do you have any ideas on how I can make it possible?
Thanks
Previous Topic:Atl transformation
Next Topic:Stereotype attribute using ATL
Goto Forum:
  


Current Time: Wed Apr 24 16:30:38 GMT 2024

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

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

Back to the top