Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Ecore as its own metamodel
Ecore as its own metamodel [message #541166] Fri, 18 June 2010 14:00 Go to next message
Joachim Dulinski is currently offline Joachim DulinskiFriend
Messages: 5
Registered: June 2010
Junior Member
Hi all,

suppose I want to understand the inner workings of the Ecore model, especially that "Ecore is it's own metamodel" part. Both logically and how it is actually done. Where should I look?

Thanks & cheers,
Joachim

Re: Ecore as its own metamodel [message #541180 is a reply to message #541166] Fri, 18 June 2010 14:44 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33133
Registered: July 2009
Senior Member
Joachim,

If you look at EcorePackage.eINSTANCE you will see the global singleton
of the Ecore model's EPackage. You'll find that
EcorePackage.eINSTANCE.eClass() == EcorePackage.eINSTANCE.getEPackage()
== EcorePackage.Literals.EPACKAGE. You'll also notice that
EcorePackage.Literals.ECLASS.eClass() == EcorePackage.Literals.ECLASS
just as Class.class.getClass() == Class.class. And finally, given any
EObject x, you'll notice that x.eClass().eClass() ==
EcorePackage.Literals.ECLASS, just as x.getClass().getClass() ==
Class.class.


Joachim Dulinski wrote:
> Hi all,
> suppose I want to understand the inner workings of the Ecore model,
> especially that "Ecore is it's own metamodel" part. Both logically and
> how it is actually done. Where should I look?
>
> Thanks & cheers, Joachim
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Re: In my model, Class not found or is abstract
Next Topic:EMF Compare
Goto Forum:
  


Current Time: Thu Apr 18 11:44:40 GMT 2024

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

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

Back to the top