|
Re: Ecore as its own metamodel [message #541180 is a reply to message #541166] |
Fri, 18 June 2010 14:44 |
Ed Merks 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/
|
|
|
Powered by
FUDForum. Page generated in 0.03188 seconds