Skip to main content



      Home
Home » Modeling » EMF » problem with generating Ecore model from XSD
problem with generating Ecore model from XSD [message #1062656] Mon, 10 June 2013 05:34 Go to next message
Eclipse UserFriend
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 06:10 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: problem with generating Ecore model from XSD [message #1062706 is a reply to message #1062669] Mon, 10 June 2013 08:38 Go to previous messageGo to next message
Eclipse UserFriend
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 15:16 Go to previous message
Eclipse UserFriend
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.
Previous Topic:genmodel - root packages problem
Next Topic:Set attribute type in UML model to List or ArrayList
Goto Forum:
  


Current Time: Sun Jul 20 02:06:33 EDT 2025

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

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

Back to the top