Skip to main content



      Home
Home » Archived » M2M (model-to-model transformation) » [QVTO] Text2Model
[QVTO] Text2Model [message #91528] Tue, 07 October 2008 06:39 Go to next message
Eclipse UserFriend
Originally posted by: mahdider.students.uni-mainz.de

Hello everyone,

since QVT is meant for model to model transformations only, and model to
text is performed via JET, MTL etc., what is the recommended way of
doing text to model transformations?

As far as I can see, mostly a forward engineering is proposed, where
models are on a higher level of abstraction, which makes text to model
transformations an impossible task in some cases.

What do you propose for more "simple" tasks like transforming Java Code
into a UML Class Diagram (forgetting about the differences between
Association types etc. to make it simpler)?

Kind Regards,
Mahdi
Re: [QVTO] Text2Model [message #91662 is a reply to message #91528] Wed, 08 October 2008 05:40 Go to previous messageGo to next message
Eclipse UserFriend
Hi Mahdi,

In general, text model transformations you can do with parsers,
those which produce EMF based AST give you a proper input for
further M2M transformation, if neccessary.
You might also want to look at http://www.eclipse.org/modeling/tmf/.

As for your "simple" task ;), there should be Java EMF Model (JEM)
available,
(not sure if along with ability to load from java source), which might
be used for M2M to UML Class Diagram.

I recommend to explore other modeling newsgroups for further info, as
this goes beyond M2M a bit.

Regards,
/Radek


On Tue, 07 Oct 2008 12:39:19 +0200, Mahdi D-Manesh
<mahdider@students.uni-mainz.de> wrote:

> Hello everyone,
>
> since QVT is meant for model to model transformations only, and model to
> text is performed via JET, MTL etc., what is the recommended way of
> doing text to model transformations?
>
> As far as I can see, mostly a forward engineering is proposed, where
> models are on a higher level of abstraction, which makes text to model
> transformations an impossible task in some cases.
>
> What do you propose for more "simple" tasks like transforming Java Code
> into a UML Class Diagram (forgetting about the differences between
> Association types etc. to make it simpler)?
>
> Kind Regards,
> Mahdi



--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
Re: [QVTO] Text2Model [message #91797 is a reply to message #91662] Wed, 08 October 2008 21:00 Go to previous messageGo to next message
Eclipse UserFriend
others options are,

MofScript, (i recomend it). http://www.eclipse.org/gmt/mofscript/

MDT. http://www.eclipse.org/modeling/mdt/?project=uml2

ATL Query. http://www.eclipse.org/m2m/atl/

JET. http://www.eclipse.org/articles/Article-JET/jet_tutorial1.ht ml

I hope that it help you.

Waldemar
Re: [QVTO] Text2Model [message #91854 is a reply to message #91797] Thu, 09 October 2008 05:02 Go to previous message
Eclipse UserFriend
Originally posted by: mahdider.students.uni-mainz.de

Waldemar,

thank you for the links!

Although I was looking for the reverse - text to model, I assume it can
be done by adjusting / extending a given parser in same way.

For M2T, I must say that MofScript looks nice as the first glance!
I tried JET but its JSP-like syntax is sort of against my taste ;) So
ended up with xPand for a while.

Will try MofScript in soon!

Regards,
Mahdi D-Manesh


neto schrieb:
>
> others options are,
>
> MofScript, (i recomend it). http://www.eclipse.org/gmt/mofscript/
>
> MDT. http://www.eclipse.org/modeling/mdt/?project=uml2
>
> ATL Query. http://www.eclipse.org/m2m/atl/
>
> JET. http://www.eclipse.org/articles/Article-JET/jet_tutorial1.ht ml
>
> I hope that it help you.
>
> Waldemar
>
Previous Topic:[ATL] how to realize a simple loop
Next Topic:[QVTO] Avoiding multiple object creation
Goto Forum:
  


Current Time: Fri May 02 01:26:15 EDT 2025

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

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

Back to the top