Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » XSD to Ecore
XSD to Ecore [message #1722411] Thu, 04 February 2016 16:29 Go to next message
Cyril LAGARDE is currently offline Cyril LAGARDEFriend
Messages: 14
Registered: January 2016
Junior Member
Hello

I have business xsd files and I use genmodel wizard to import xsd and create ecore file.
When I generate java sources, I have some classes named with suffix Type.
For example, a radius in xsd becomes RadiusType.java, and i have also frequency becomes FrequencyType3.java.

Is there a way to avoid this?

Thanks
Re: XSD to Ecore [message #1722413 is a reply to message #1722411] Thu, 04 February 2016 16:52 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Cyril,

It sounds likely that there are anonymous complex types involved.
Probably you have 3 different elements called frequency, each with a
different anonymous type. You can use an ecore:name annotation to
choose the name yourself:

https://www.eclipse.org/modeling/emf/docs/overviews/XMLSchemaToEcoreMapping.pdf
http://www.theserverside.com/news/1364302/Binding-XML-to-Java


On 04.02.2016 17:29, Cyril LAGARDE wrote:
> Hello
>
> I have business xsd files and I use genmodel wizard to import xsd and
> create ecore file. When I generate java sources, I have some classes
> named with suffix Type.
> For example, a radius in xsd becomes RadiusType.java, and i have also
> frequency becomes FrequencyType3.java.
>
> Is there a way to avoid this?
>
> Thanks


Ed Merks
Professional Support: https://www.macromodeling.com/
icon12.gif  Re: XSD to Ecore [message #1722532 is a reply to message #1722413] Fri, 05 February 2016 13:36 Go to previous message
Cyril LAGARDE is currently offline Cyril LAGARDEFriend
Messages: 14
Registered: January 2016
Junior Member
Ed

Once again Very Happy
Thank you for the document
Previous Topic:[EMF Forms] Different labels for nodes of the same type
Next Topic:[CDO] Does the CDO Server product allow for gzip compression?
Goto Forum:
  


Current Time: Wed Apr 24 17:09:10 GMT 2024

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

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

Back to the top