Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » extract the information of an association (extract the information of an association )
extract the information of an association [message #531585] Wed, 05 May 2010 09:34 Go to next message
lisadou  is currently offline lisadou
Messages: 6
Registered: April 2010
Junior Member
hi,guys. i have a question in using M2T tool to translate UML Class Diagram into text.
i want to extract the information of an association ,including its name ,the memberEnds' names and their multiplicities.

for example,following figure shows an example of a class diagram:

http://public.blu.livefilestore.com/y1pTBeOuuKQsBTzwApPJMskrtz0As8LSt0x1pK4kjmWSQkAraYL2naSI_u9ihDhlDFs9O3f5rG00s5MQoC_sSDTpQ/cd.JPG

and i want to generate such text for the association:

association(engineer,cloud,cloud,0,1).
association(cloud,engineer,engineer,0,1).

can someone tell me how to finish such job?
Thanks a lot.
PS: i found that there is little study material about M2T tool,can any body offer me some ?

[Updated on: Wed, 05 May 2010 09:37]

Report message to a moderator

Re: extract the information of an association [message #531587 is a reply to message #531585] Wed, 05 May 2010 09:39 Go to previous messageGo to next message
MaximeLecourt  is currently offline MaximeLecourt
Messages: 108
Registered: February 2010
Location: France
Senior Member
First of all, what M2T project are you using ?

One day I shall master M2T, but that day has yet to come...
Re: extract the information of an association [message #531594 is a reply to message #531587] Wed, 05 May 2010 09:51 Go to previous message
lisadou  is currently offline lisadou
Messages: 6
Registered: April 2010
Junior Member
Thank you for your reply.
I have created a new Acceleo module project and created a new Acceleo Template.
using the following to import the metamodel
[module generateGoLog('http://www.eclipse.org/uml2/2.1.0/UML')/]

[Updated on: Wed, 05 May 2010 09:51]

Report message to a moderator

Previous Topic:EMF, oAW and "Code Composer Studio 4" (CCS4)
Next Topic:Escaping Strings in Xpand
Goto Forum:
  


Current Time: Thu Jul 24 09:08:19 EDT 2014

Powered by FUDForum. Page generated in 0.01538 seconds