Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Transform UML2XSD(Transform UML to XSD)
Transform UML2XSD [message #853168] Sun, 22 April 2012 19:52 Go to next message
Arnedo Ramon is currently offline Arnedo RamonFriend
Messages: 14
Registered: March 2012
Junior Member
Hi,

I need to transform a UML model to a XDS Schema using Eclipse. How I can do it?

I read about two options: Hypermodel and EDNA. What do you recommend?

I need to know the transformations between then (UML-XSD) and I would like to modify them if it's possible.

Thanks for all,

Ramón.
Re: Transform UML2XSD [message #853593 is a reply to message #853168] Mon, 23 April 2012 06:39 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33136
Registered: July 2009
Senior Member
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Ramón,<br>
<br>
I imagine such a transformation should be about how instances of the
UML2 model are serialized as XML.  But UML doesn't (directly)
specify how instances are to be serialized as XML/XMI.   One
approach you could use is to transform UML2 to Ecore and then to
generate an XMI or XML schema from that.<br>
<br>
<a target="_out"
href="http://www.theserverside.com/tt/articles/article.tss?l=BindingXMLJava">Binding
XML to Java</a><br>
<a
href="http://www.eclipse.org/modeling/emf/docs/overviews/XMLSchemaToEcoreMapping.pdf">XML
Schema to Ecore Mapping</a><br>
<br>
<br>
On 22/04/2012 9:52 PM, Arnedo Ramon wrote:
<blockquote cite="mid:jn1nie$qv7$1@xxxxxxxxe.org" type="cite">Hi,
<br>
<br>
I need to transform a UML model to a XDS Schema using Eclipse. How
I can do it? <br>
I read about two options: Hypermodel and EDNA. What do you
recommend?
<br>
<br>
I need to know the transformations between then (UML-XSD) and I
would like to modify them if it's possible.
<br>
<br>
Thanks for all,
<br>
<br>
Ramón.
<br>
<br>
</blockquote>
</body>
</html>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Transform UML2XSD [message #854075 is a reply to message #853593] Mon, 23 April 2012 16:33 Go to previous messageGo to next message
Arnedo Ramon is currently offline Arnedo RamonFriend
Messages: 14
Registered: March 2012
Junior Member
Hi,

I'm so sorry, but I didn't explain my idea so well.

I'm going to try again.

I don't want to serialize the UML model as XMI.

My objective is to transform UML model to its XSD Schema (I got it using Enterprise Architect). Besides, if it's possible know the steps and the source code to do it.

I did a Ecore model from a XSD Schema, but I couldn't do the inverse option: a XSD Schema from a Ecore model.

You explain me the option of generate an XMI or XML schema from the Ecore Model. How do you do it? Open the Ecore model with the text Editor?

Thanks for all,

Ramón.
Re: Transform UML2XSD [message #854092 is a reply to message #854075] Mon, 23 April 2012 16:56 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33136
Registered: July 2009
Senior Member
Arnedo,

Comments below.

On 23/04/2012 6:33 PM, Arnedo Ramon wrote:
> Hi,
>
> I'm so sorry, but I didn't explain my idea so well.
>
> I'm going to try again.
>
> I don't want to serialize the UML model as XMI.
I assume not, given that UML2 models are already serialized as XMI.
>
> My objective is to transform UML model to its XSD Schema (I got it
> using Enterprise Architect). Besides, if it's possible know the steps
> and the source code to do it.
You make it sound like there is some specified mapping, but I don't know
of one.
>
> I did a Ecore model from a XSD Schema, but I couldn't do the inverse
> option: a XSD Schema from a Ecore model.
Open the *.genmodel and use Export Model...
> You explain me the option of generate an XMI or XML schema from the
> Ecore Model. How do you do it?
As above. You can play with it to see how it works.
> Open the Ecore model with the text Editor?
If you only have an Ecore model, you'll have to create Generator Model
for it; there's a wizard to create it.
>
> Thanks for all,
>
> Ramón.
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Transform UML2XSD [message #869981 is a reply to message #854092] Sat, 05 May 2012 12:39 Go to previous message
Arnedo Ramon is currently offline Arnedo RamonFriend
Messages: 14
Registered: March 2012
Junior Member
Thank you very much.

It was so useful.
Previous Topic:Registering Ecore.profile.uml
Next Topic:Error to get sendEvent or receiveEvent value from UML sequence
Goto Forum:
  


Current Time: Fri Apr 19 04:39:42 GMT 2024

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

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

Back to the top