Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » many attributes Source en one target attribute
many attributes Source en one target attribute [message #1060526] Sun, 26 May 2013 07:44 Go to next message
samar sousou is currently offline samar sousouFriend
Messages: 63
Registered: March 2013
Member
Hi every body,
I want to know how can I assign a set of source attributes from different classes of metamodel in a single target attribute of type text.

I need an example.


thank you.
Samar
Re: many attributes Source en one target attribute [message #1060634 is a reply to message #1060526] Mon, 27 May 2013 12:18 Go to previous messageGo to next message
Hugo Bruneliere is currently offline Hugo BruneliereFriend
Messages: 616
Registered: July 2009
Senior Member
Hello,

I guess you want to concatenate the value of several attributes into a single String value (to set another attribute).
To this intent, you can use the different available operations on String.
Note that Integer, Real and Boolean values can be converted to String by using the toString() operation.


------------------------------------------
Hugo Bruneliere - R&D Engineer
AtlanMod research team (Inria, EMN & LINA)
Ecole des Mines de Nantes
Nantes - France
------------------------------------------
Re: many attributes Source en one target attribute [message #1060637 is a reply to message #1060526] Mon, 27 May 2013 12:27 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 4187
Registered: July 2009
Senior Member
Hi

1) Do not SPAM multiple newsgroups with the saem question

2) Ask a clear question.

By asking on so many newsgroups without identifying the M2M language, no
one can answer sensibly.

Regards

Ed Willink

On 26/05/2013 08:44, samar sousou wrote:
> Hi every body,
> I want to know how can I assign a set of source attributes from
> different classes of metamodel in a single target attribute of type text.
>
> I need an example.
>
>
> thank you.
> Samar
Re: many attributes Source en one target attribute [message #1060681 is a reply to message #1060637] Mon, 27 May 2013 17:29 Go to previous messageGo to next message
samar sousou is currently offline samar sousouFriend
Messages: 63
Registered: March 2013
Member
Thank you Mr Hugo,

but my goal is to assign to a text field in my meta-model target a piece of code (tag) XMI.

but I don't know how!

thank you,

Samar.
Re: many attributes Source en one target attribute [message #1060742 is a reply to message #1060681] Tue, 28 May 2013 10:16 Go to previous message
samar sousou is currently offline samar sousouFriend
Messages: 63
Registered: March 2013
Member
I need your help,

Samar
Previous Topic:Comparing Large Numbers Fails with ATL 3.2.1
Next Topic:call a text file
Goto Forum:
  


Current Time: Sat Dec 20 02:27:57 GMT 2014

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

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