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 03:44 Go to next message
samar sousou is currently offline samar sousou
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 08:18 Go to previous messageGo to next message
Hugo Bruneliere is currently offline Hugo Bruneliere
Messages: 600
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 08:27 Go to previous messageGo to next message
Ed Willink is currently offline Ed Willink
Messages: 4010
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 13:29 Go to previous messageGo to next message
samar sousou is currently offline samar sousou
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 06:16 Go to previous message
samar sousou is currently offline samar sousou
Messages: 63
Registered: March 2013
Member
I need your help,

Samar
Previous Topic:Problem with ATL transformation BPMN2PN
Next Topic:call a text file
Goto Forum:
  


Current Time: Wed Jul 30 01:19:55 EDT 2014

Powered by FUDForum. Page generated in 0.34044 seconds