Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » How to convert a XSD schema file into UML class model?
How to convert a XSD schema file into UML class model? [message #628161] Thu, 07 January 2010 15:42 Go to next message
Ben StoverFriend
Messages: 108
Registered: January 2010
Senior Member
Assume I have an external XSD schema file
(or many XSD schema files which import each other).

How can I convert them to an UML class diagram in Eclipse?

Is there somewhere a quick tutorial for this?

Ben
Re: How to convert a XSD schema file into UML class model? [message #628162 is a reply to message #628161] Thu, 07 January 2010 16:35 Go to previous message
Carsten Reckord is currently offline Carsten ReckordFriend
Messages: 139
Registered: July 2009
Senior Member
Hi Ben,

I don't think there is a direct way to do this. However, you can easily create an EMF model for the XSD and export that to UML. To do that:

- Open the New EMF Generator model wizard (File->New->Other...->EMF Generator Model)
- Choose a location and name for the GenModel (usually the place where you want your UML model to end up)
- On the next page choose "XML Schema" as import source
- Choose the Schema(s) to import on the next page
- The final page of the wizard shows you the EMF models that will be created and lets you edit their file names (they will be co-located
with teh Genmodel)
- finish the wizard
- you should end up with one or more *.ecore files for your schemas and an open editor showing your newly created Genmodel.
- From the editor's context menu choose "Export model...", "UML Model", a target directory and all models to convert (usually all would be a
good choice) and finish.

You should end up with UML models for your schemas and probably an ecore.uml with some Ecore infrastructure classes.

Hope that hepls,
Carsten

On 07.01.2010 16:42, Ben wrote:
> Assume I have an external XSD schema file
> (or many XSD schema files which import each other).
>
> How can I convert them to an UML class diagram in Eclipse?
>
> Is there somewhere a quick tutorial for this?
>
> Ben
Previous Topic:Owned Elements
Next Topic:How to convert a XSD schema file into UML class model?
Goto Forum:
  


Current Time: Fri Apr 26 22:38:58 GMT 2024

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

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

Back to the top