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 #506463] 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 #506488 is a reply to message #506463] Thu, 07 January 2010 16:35 Go to previous messageGo to next 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
Re: How to convert a XSD schema file into UML class model? [message #506510 is a reply to message #506488] Thu, 07 January 2010 18:53 Go to previous messageGo to next message
Ben StoverFriend
Messages: 108
Registered: January 2010
Senior Member
Hello Carsten,

thank you for the hints. Just a question anout the required plugins. If I access the software server
Galileo - http://download.eclipse.org/releases/galileo

then there are 4 entries for EMF:
- Modeling Framework
- Compare SDK
- Teneo Eclispelink
- EMF Hibernate
Which of these plugins do I need for the mentioned task?

What is necessary for the UML part I:
Only UML2 Tools SDK or UML2 Extender SDK?

Thank you
Ben
Re: How to convert a XSD schema file into UML class model? [message #506513 is a reply to message #506510] Thu, 07 January 2010 19:11 Go to previous messageGo to next message
Carsten Reckord is currently offline Carsten ReckordFriend
Messages: 139
Registered: July 2009
Senior Member
Hi Ben,

From the Galileo Modeling category you will need

- Eclipse Modeling Framework SDK
- XML Schema Definition SDK
- UML2 Extender SDK
- UML2 Tools SDK if you want eclipse's UML2 diagram editors

The others you mentioned contain additional optional features for EMF:
> - Compare SDK
Model comparison framework for EMF
> - Teneo Eclispelink
> - EMF Hibernate
OR mapping and database persistence for EMF with EclipseLink and Hibernate respectively


Carsten
Re: How to convert a XSD schema file into UML class model? [message #506576 is a reply to message #506513] Fri, 08 January 2010 06:43 Go to previous messageGo to next message
Ben StoverFriend
Messages: 108
Registered: January 2010
Senior Member
Hello Carsten,

thank you again. One more question:

Is there somewhere a good and short tutorial on how to use the EMF und UML2 framework?

When I google for such a tutorial I get a list of hundreds of them but these artiles are either to comprehensiv e or outdated or describe only a small portion of the whole topic.

So a recommendation for a good, short, uptodate introduction from scratch would be fine.
I am particularly interested in creating UML class diagrams.
Lets say for creating a "hello world" class diagram.

Ben
Re: How to convert a XSD schema file into UML class model? [message #506654 is a reply to message #506576] Fri, 08 January 2010 14:20 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33136
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------050804020405030703020409
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

Ben,

This is what's available at Eclipse:

http://www.eclipse.org/modeling/emf/docs/
http://wiki.eclipse.org/index.php/MDT-UML2
http://wiki.eclipse.org/index.php/MDT-UML2TOOLS


Ben wrote:
> Hello Carsten,
>
> thank you again. One more question:
>
> Is there somewhere a good and short tutorial on how to use the EMF und
> UML2 framework?
>
> When I google for such a tutorial I get a list of hundreds of them but
> these artiles are either to comprehensiv e or outdated or describe
> only a small portion of the whole topic.
>
> So a recommendation for a good, short, uptodate introduction from
> scratch would be fine. I am particularly interested in creating UML
> class diagrams.
> Lets say for creating a "hello world" class diagram.
>
> Ben
>

--------------050804020405030703020409
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Ben,<br>
<br>
This is what's available at Eclipse:<br>
<blockquote><a href="http://www.eclipse.org/modeling/emf/docs/">http://www.eclipse.org/modeling/emf/docs/</a><br>
<a href="http://wiki.eclipse.org/index.php/MDT-UML2">http://wiki.eclipse.org/index.php/MDT-UML2</a><br>
<a href="http://wiki.eclipse.org/index.php/MDT-UML2TOOLS">http://wiki.eclipse.org/index.php/MDT-UML2TOOLS</a><br>
</blockquote>
<br>
Ben wrote:
<blockquote cite="mid:hi6k79$fh1$1@build.eclipse.org" type="cite">Hello
Carsten,
<br>
<br>
thank you again. One more question:
<br>
<br>
Is there somewhere a good and short tutorial on how to use the EMF und
UML2 framework?
<br>
<br>
When I google for such a tutorial I get a list of hundreds of them but
these artiles are either to comprehensiv e or outdated or describe only
a small portion of the whole topic.
<br>
<br>
So a recommendation for a good, short, uptodate introduction from
scratch would be fine. I am particularly interested in creating UML
class diagrams.
<br>
Lets say for creating a "hello world" class diagram.
<br>
<br>
Ben
<br>
<br>
</blockquote>
</body>
</html>

--------------050804020405030703020409--


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: How to convert a XSD schema file into UML class model? [message #628163 is a reply to message #506488] Thu, 07 January 2010 18:53 Go to previous message
Ben StoverFriend
Messages: 108
Registered: January 2010
Senior Member
Hello Carsten,

thank you for the hints. Just a question anout the required plugins. If I access the software server
Galileo - http://download.eclipse.org/releases/galileo

then there are 4 entries for EMF:
- Modeling Framework
- Compare SDK
- Teneo Eclispelink
- EMF Hibernate
Which of these plugins do I need for the mentioned task?

What is necessary for the UML part I:
Only UML2 Tools SDK or UML2 Extender SDK?

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

From the Galileo Modeling category you will need

- Eclipse Modeling Framework SDK
- XML Schema Definition SDK
- UML2 Extender SDK
- UML2 Tools SDK if you want eclipse's UML2 diagram editors

The others you mentioned contain additional optional features for EMF:
> - Compare SDK
Model comparison framework for EMF
> - Teneo Eclispelink
> - EMF Hibernate
OR mapping and database persistence for EMF with EclipseLink and Hibernate respectively


Carsten
Re: How to convert a XSD schema file into UML class model? [message #628165 is a reply to message #506513] Fri, 08 January 2010 06:43 Go to previous message
Ben StoverFriend
Messages: 108
Registered: January 2010
Senior Member
Hello Carsten,

thank you again. One more question:

Is there somewhere a good and short tutorial on how to use the EMF und UML2 framework?

When I google for such a tutorial I get a list of hundreds of them but these artiles are either to comprehensiv e or outdated or describe only a small portion of the whole topic.

So a recommendation for a good, short, uptodate introduction from scratch would be fine.
I am particularly interested in creating UML class diagrams.
Lets say for creating a "hello world" class diagram.

Ben
Re: How to convert a XSD schema file into UML class model? [message #628166 is a reply to message #628165] Fri, 08 January 2010 14:20 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33136
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------050804020405030703020409
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

Ben,

This is what's available at Eclipse:

http://www.eclipse.org/modeling/emf/docs/
http://wiki.eclipse.org/index.php/MDT-UML2
http://wiki.eclipse.org/index.php/MDT-UML2TOOLS


Ben wrote:
> Hello Carsten,
>
> thank you again. One more question:
>
> Is there somewhere a good and short tutorial on how to use the EMF und
> UML2 framework?
>
> When I google for such a tutorial I get a list of hundreds of them but
> these artiles are either to comprehensiv e or outdated or describe
> only a small portion of the whole topic.
>
> So a recommendation for a good, short, uptodate introduction from
> scratch would be fine. I am particularly interested in creating UML
> class diagrams.
> Lets say for creating a "hello world" class diagram.
>
> Ben
>

--------------050804020405030703020409
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Ben,<br>
<br>
This is what's available at Eclipse:<br>
<blockquote><a href="http://www.eclipse.org/modeling/emf/docs/">http://www.eclipse.org/modeling/emf/docs/</a><br>
<a href="http://wiki.eclipse.org/index.php/MDT-UML2">http://wiki.eclipse.org/index.php/MDT-UML2</a><br>
<a href="http://wiki.eclipse.org/index.php/MDT-UML2TOOLS">http://wiki.eclipse.org/index.php/MDT-UML2TOOLS</a><br>
</blockquote>
<br>
Ben wrote:
<blockquote cite="mid:hi6k79$fh1$1@build.eclipse.org" type="cite">Hello
Carsten,
<br>
<br>
thank you again. One more question:
<br>
<br>
Is there somewhere a good and short tutorial on how to use the EMF und
UML2 framework?
<br>
<br>
When I google for such a tutorial I get a list of hundreds of them but
these artiles are either to comprehensiv e or outdated or describe only
a small portion of the whole topic.
<br>
<br>
So a recommendation for a good, short, uptodate introduction from
scratch would be fine. I am particularly interested in creating UML
class diagrams.
<br>
Lets say for creating a "hello world" class diagram.
<br>
<br>
Ben
<br>
<br>
</blockquote>
</body>
</html>

--------------050804020405030703020409--


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:How to convert a XSD schema file into UML class model?
Next Topic:Stereotypes are not correctly recognized
Goto Forum:
  


Current Time: Fri Apr 19 02:10:33 GMT 2024

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

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

Back to the top