Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » How to get the ECore internal details
How to get the ECore internal details [message #416653] Mon, 11 February 2008 08:16 Go to next message
Debasis Mishra is currently offline Debasis MishraFriend
Messages: 36
Registered: July 2009
Member
Hello All,
I am using EMF and i am having a rose class model.
But I want to know why EMF is generating the ecore model and genmodel
both.

What is that ecore(metamodel) internally.mean to say internals of ecore.
can i generate my code without ecore mean to say withonly genmodel or can
I be able to generate my code without genmodel mean to say without ecore.


Can any body provide me any link which gives the internals of ecore.and
also links for the transformation(how it is getting converted from UML to
ecore metadata.)


Thanks in advance
Debasis
Re: How to get the ECore internal details [message #416660 is a reply to message #416653] Mon, 11 February 2008 15:54 Go to previous messageGo to next message
David Steinberg is currently offline David SteinbergFriend
Messages: 489
Registered: July 2009
Senior Member
Debasis wrote:
> Hello All,
> I am using EMF and i am having a rose class model.
> But I want to know why EMF is generating the ecore model and genmodel both.

Hi Debasis,

The Ecore model (.ecore file) is the real EMF representation of your
model. The generator model (.genmodel file) decorates it with details
related only to code generation.

> What is that ecore(metamodel) internally.mean to say internals of ecore.
> can i generate my code without ecore mean to say withonly genmodel or
> can I be able to generate my code without genmodel mean to say without
> ecore.

The two artifacts contain different information, and both are required
to generate code.

> Can any body provide me any link which gives the internals of ecore.and
> also links for the transformation(how it is getting converted from UML
> to ecore metadata.)

I would start with the EMF Overview:

http://help.eclipse.org/help33/topic/org.eclipse.emf.doc/ref erences/overview/EMF.html

For more details on the internals of EMF, you should check out the rough
cut of our book:

http://my.safaribooksonline.com/9780321331885


Cheers,
Dave
Re: How to get the ECore internal details [message #416675 is a reply to message #416660] Tue, 12 February 2008 11:33 Go to previous messageGo to next message
Debasis Mishra is currently offline Debasis MishraFriend
Messages: 36
Registered: July 2009
Member
Hi Dave,
Thanks a lot for a quick reply.I have gone through all ECore key types
and ECore hierarchy.

Could you please provide me some good reference material to know how the
transformation(transformation design architecture) is happening
(from UML to ECore).







Thanks in advance
Debasis
Re: How to get the ECore internal details [message #416678 is a reply to message #416675] Tue, 12 February 2008 13:23 Go to previous messageGo to next message
David Steinberg is currently offline David SteinbergFriend
Messages: 489
Registered: July 2009
Senior Member
Debasis wrote:
>
> Could you please provide me some good reference material to know how
> the transformation(transformation design architecture) is happening
> (from UML to ECore).

Hi again Debasis,

The mapping from UML to Ecore is described in detail in the EMF book.
The internals of the implementation are not documented anywhere.

You'll find the code in org.eclipse.emf.importer.rose.RoseEcoreBuilder,
with support from classes in the org.eclipse.emf.importer.rose.builder
package.

Cheers,
Dave
Re: How to get the ECore internal details [message #416721 is a reply to message #416678] Thu, 14 February 2008 08:38 Go to previous messageGo to next message
Debasis Mishra is currently offline Debasis MishraFriend
Messages: 36
Registered: July 2009
Member
Hi Dave,

Thanks a lot for the reply.could you please tell me the algorithm of the
transformation from UML to ECore.



Thanks in advance
Debasis
Re: How to get the ECore internal details [message #416725 is a reply to message #416721] Thu, 14 February 2008 14:12 Go to previous message
Marcelo Paternostro is currently offline Marcelo PaternostroFriend
Messages: 602
Registered: July 2009
Senior Member
Hi Debasis,

As Dave said, the algorithm is implemented in RoseEcoreBuilder and
carefully detailed in the book. You will also find a lot of information
at the following presentation available in our documentation page
(http://www.eclipse.org/modeling/emf/docs/):
http://www.eclipse.org/modeling/emf/docs/presentations/OOPSL A/OOPSLA_2006_T38_Intro_To_EMF.pdf

Cheers,
Marcelo

Debasis wrote:
> Hi Dave,
>
> Thanks a lot for the reply.could you please tell me the algorithm of
> the transformation from UML to ECore.
>
>
>
> Thanks in advance
> Debasis
Previous Topic:how to generate an Ecore from a xml/xmi file?
Next Topic:Editor EMF created from XML schema produce bad code
Goto Forum:
  


Current Time: Mon Sep 23 08:05:56 GMT 2024

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

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

Back to the top