Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » problem with generating Ecore model from XSD
problem with generating Ecore model from XSD [message #1062656] Mon, 10 June 2013 09:34 Go to next message
frank fotso is currently offline frank fotsoFriend
Messages: 91
Registered: May 2012
Member
Morning,

i would like to generate an Ecore model from XSD, but when i generate my model every complex type name has type in front of his name and that is not what i want.
Ex: if the completType name in the XSD was toto, when i generate the model the compleType name becomes totoType in my model and i just want to have toto just as in the model.

any ideas of how to do it,

thanks in advance,

Frank
Re: problem with generating Ecore model from XSD [message #1062669 is a reply to message #1062656] Mon, 10 June 2013 10:10 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Frank,

Comments below.

On 10/06/2013 11:34 AM, frank fotso wrote:
> Morning,
>
> i would like to generate an Ecore model from XSD, but when i generate
> my model every complex type name has type in front of his name and
> that is not what i want.
> Ex: if the completType name in the XSD was toto, when i generate the
> model the compleType name becomes totoType in my model and i just want
> to have toto just as in the model.
I expect this only happens because your complex types don't have a name
but rather are the anonymous type of some element, right?
>
> any ideas of how to do it,
You can use ecore annotations in the schema to control the name:
http://refcardz.dzone.com/refcardz/essential-emf
>
> thanks in advance,
>
> Frank


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: problem with generating Ecore model from XSD [message #1062706 is a reply to message #1062669] Mon, 10 June 2013 12:38 Go to previous messageGo to next message
frank fotso is currently offline frank fotsoFriend
Messages: 91
Registered: May 2012
Member
thanks, but i tried it but there is no change.
any others propositions.
Re: problem with generating Ecore model from XSD [message #1062799 is a reply to message #1062706] Mon, 10 June 2013 19:16 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Frank,

You've not provided an concrete example and you've not shown
specifically what you've tried, so you shouldn't expect much more from
me either.


On 10/06/2013 2:38 PM, frank fotso wrote:
> thanks, but i tried it but there is no change.
> any others propositions.


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:genmodel - root packages problem
Next Topic:Set attribute type in UML model to List or ArrayList
Goto Forum:
  


Current Time: Fri Apr 19 18:18:59 GMT 2024

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

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

Back to the top