Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » xsd import/export
xsd import/export [message #421987] Wed, 20 August 2008 06:07 Go to next message
gitanjali punj is currently offline gitanjali punjFriend
Messages: 59
Registered: July 2009
Member
Hi,
Can you please tell me in detail how you have implemented
the xsd schema import/export. What all metamodels and api
have been used.
How the whole code/process flows .

thanks
Re: xsd import/export [message #421997 is a reply to message #421987] Wed, 20 August 2008 09:12 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
Gitanjali,

If you set breakpoints in XSDEcoreBuilder and EcoreSchemaBuilder and
watch the behavior of creating an EMF project for an XSD and exporting a
GenModel to XML Schema, you can get a very good idea what's involved and
then if you have more specific questions, I can answer those.


Gitanjali Punj wrote:
> Hi,
> Can you please tell me in detail how you have implemented the xsd
> schema import/export. What all metamodels and api have been used.
> How the whole code/process flows .
>
> thanks
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: xsd import/export [message #422001 is a reply to message #421997] Wed, 20 August 2008 09:36 Go to previous messageGo to next message
gitanjali punj is currently offline gitanjali punjFriend
Messages: 59
Registered: July 2009
Member
hi,
we have made our own modeling framework using/extending your
api's. Now we have implemeted cmof export and import. I
want to know that how can i create an xsd schema for it.
Do i need to create an XSD META MODEL for it and how
the whole flow will be.
Re: xsd import/export [message #422006 is a reply to message #422001] Wed, 20 August 2008 09:50 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
Gitanjali,

There already is an XSD meta model, i.e., XSD.ecore exists and the XSD
plugin implements it. So XSDEcoreBuilder and EcoreSchemaBuilder map any
*.ecore instance from and to an *.xsd instance. So I imagine if you
have CMOF <->Ecore and Ecore <-> XSD already exists that by transitivity
you already have your mapping and don't need anything else...


Gitanjali Punj wrote:
> hi,
> we have made our own modeling framework using/extending your
> api's. Now we have implemeted cmof export and import. I want to know
> that how can i create an xsd schema for it.
> Do i need to create an XSD META MODEL for it and how the whole flow
> will be.
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: xsd import/export [message #422014 is a reply to message #422006] Wed, 20 August 2008 11:52 Go to previous messageGo to next message
gitanjali punj is currently offline gitanjali punjFriend
Messages: 59
Registered: July 2009
Member
Hi Ed,
we have our own modeling framework with our own meta meta,
meta models. Using the eclipse parser and its api we created
import and export of cmof/emof xml file(xmi).Now what changes
will be required in the existing code/project so that on
clicking export the meta/user models xml schema/xsd
should be generated.
Because in cmof export what we did was:
take our meta model then create and instance of cmof meta model
in that instance model the meta model was copied.
the instance model was then transformed into cmof xmi so that it maps to
all
the tags like <ownedmember>, <memberEnd> etc.
Is it possible to make some changes in
the existing code or the implemetation for xsd schema is
totally different from this.
Re: xsd import/export [message #422015 is a reply to message #422014] Wed, 20 August 2008 12:07 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
Gitanjali,

Comments below.

Gitanjali Punj wrote:
> Hi Ed,
> we have our own modeling framework with our own meta meta,
> meta models.
That's a lot of metas. Does it make your brain hurt? :-P
> Using the eclipse parser and its api we created
> import and export of cmof/emof xml file(xmi).
Not sure what you mean by "the eclipse parser". I suppose you means
org.eclipse.emf.ecore.xmi's ability to read and write .xmi files for
which *.ecore models exist.
> Now what changes will be required in the existing code/project so that
> on clicking export
Clicking it where? In the Generator when working with a GenModel?
> the meta/user models xml schema/xsd should be generated.
I'm lost in meta space.
> Because in cmof export what we did was:
> take our meta model then create and instance of cmof meta model
Even further lost in the metaness of it all...
> in that instance model the meta model was copied.
Wow. I could cry now.
> the instance model was then transformed into cmof xmi so that it maps
> to all the tags like <ownedmember>, <memberEnd> etc.
I am crying now...
> Is it possible to make some changes in the existing code or the
> implemetation for xsd schema is totally different from this.
I no longer have any idea what "this" really is. I'm scared to ask you
to explain further.
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:CDO and HTTP
Next Topic:emf : package not found error while executing CLI frm comm prompt
Goto Forum:
  


Current Time: Thu Apr 25 15:13:43 GMT 2024

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

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

Back to the top