Model to Meta-Model mapping? [message #69651] |
Thu, 07 September 2006 16:26  |
Eclipse User |
|
|
|
Originally posted by: mathiasfrz.web.de
Hi Ed,
Because of my master thesis I have one general question to the XML Schema
Document to Ecore model mapping (of the XSD Plugin):
Why are the XML Schema Documents mapped to ECORE Models and why is no
ECORE conform Meta-Model available which describes XML Schema documents in
an abstract way. For my understanding, XML Schema Documents are more like
models than like meta-models. Isnt it?
Thank you very much,
Mathias
|
|
|
Re: Model to Meta-Model mapping? [message #69671 is a reply to message #69651] |
Thu, 07 September 2006 18:11  |
Eclipse User |
|
|
|
Originally posted by: merks.ca.ibm.com
Mathias,
XML Schema models are mapped to Ecore models so that we can take
advantage of the fact from Ecore we can generate a Java realization of
that model and hence indirectly we are generating a Java realization of
the XML Schema model. There is an Ecore model for XML Schema, it's
serialized in org.eclipse.xsd/model/XSD.ecore and the generated instance
is XSDPackage.eINSTANCE. The generated API for this model provides
XSDSchema for abstractly representing a schema document. A meta-model is
a model, so I'm not sure the distinction that's made when you say
something is more like a model than a meta model.
Mathias wrote:
> Hi Ed,
> Because of my master thesis I have one general question to the XML
> Schema Document to Ecore model mapping (of the XSD Plugin):
>
> Why are the XML Schema Documents mapped to ECORE Models and why is no
> ECORE conform Meta-Model available which describes XML Schema
> documents in an abstract way. For my understanding, XML Schema
> Documents are more like models than like meta-models. Isn�t it?
>
> Thank you very much,
> Mathias
>
>
|
|
|
Re: Model to Meta-Model mapping? [message #598724 is a reply to message #69651] |
Thu, 07 September 2006 18:11  |
Eclipse User |
|
|
|
Mathias,
XML Schema models are mapped to Ecore models so that we can take
advantage of the fact from Ecore we can generate a Java realization of
that model and hence indirectly we are generating a Java realization of
the XML Schema model. There is an Ecore model for XML Schema, it's
serialized in org.eclipse.xsd/model/XSD.ecore and the generated instance
is XSDPackage.eINSTANCE. The generated API for this model provides
XSDSchema for abstractly representing a schema document. A meta-model is
a model, so I'm not sure the distinction that's made when you say
something is more like a model than a meta model.
Mathias wrote:
> Hi Ed,
> Because of my master thesis I have one general question to the XML
> Schema Document to Ecore model mapping (of the XSD Plugin):
>
> Why are the XML Schema Documents mapped to ECORE Models and why is no
> ECORE conform Meta-Model available which describes XML Schema
> documents in an abstract way. For my understanding, XML Schema
> Documents are more like models than like meta-models. Isn�t it?
>
> Thank you very much,
> Mathias
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.04156 seconds