Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Load a XMI file with xmlns:uml tag < 3.0.0
Load a XMI file with xmlns:uml tag < 3.0.0 [message #628026] Wed, 04 November 2009 20:50 Go to next message
HTWTeam  is currently offline HTWTeam Friend
Messages: 6
Registered: October 2009
Junior Member
Hello,

can somebody explain how we can load a XMI file with an old xmlns:uml Tag (for example: xmlns:uml="http://www.eclipse.org/uml2/2.2.0/UML) without the gui in an own java application?

Thanks
Re: Load a XMI file with xmlns:uml tag < 3.0.0 [message #628027 is a reply to message #628026] Thu, 05 November 2009 09:23 Go to previous messageGo to next message
Vlad Varnica is currently offline Vlad VarnicaFriend
Messages: 546
Registered: July 2009
Location: Milton Keynes - UK
Senior Member
I don't understand the question :blush:
Do you mean that you have a xml coming from an UML model and you would like to create java code or would you like to create graphical views ?
Re: Load a XMI file with xmlns:uml tag < 3.0.0 [message #628028 is a reply to message #628026] Thu, 05 November 2009 11:39 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 26283
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------090801040907010208040102
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

Maybe the details for "Programmatic Migration" here are similar:

http://www.eclipse.org/modeling/mdt/uml2/docs/guides/UML2_2. 0_Migration_Guide/guide.html



HTWTeam wrote:
> Hello,
>
> can somebody explain how we can load a XMI file with an old xmlns:uml
> Tag (for example: xmlns:uml="http://www.eclipse.org/uml2/2.2.0/UML)
> without the gui in an own java application?
>
> Thanks

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

<!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">
Maybe the details for "<span style=""></span>Programmatic
Migration" here are similar:  <br>
<blockquote><a
href=" http://www.eclipse.org/modeling/mdt/uml2/docs/guides/UML2_2. 0_Migration_Guide/guide.html"> http://www.eclipse.org/modeling/mdt/uml2/docs/guides/UML2_2. 0_Migration_Guide/guide.html</a><br>
</blockquote>
<br>
<br>
HTWTeam wrote:
<blockquote cite="mid:hcspds$hn8$1@build.eclipse.org" type="cite">Hello,
<br>
<br>
can somebody explain how we can load a XMI file with an old xmlns:uml
Tag (for example: xmlns:uml="<a class="moz-txt-link-freetext" href="http://www.eclipse.org/uml2/2.2.0/UML">http://www.eclipse.org/uml2/2.2.0/UML</a>)
without the gui in an own java application?
<br>
<br>
Thanks
<br>
</blockquote>
</body>
</html>

--------------090801040907010208040102--
Re: Load a XMI file with xmlns:uml tag < 3.0.0 [message #628030 is a reply to message #628027] Fri, 06 November 2009 10:06 Go to previous messageGo to next message
HTWTeam  is currently offline HTWTeam Friend
Messages: 6
Registered: October 2009
Junior Member
Vlad Varnica wrote on Thu, 05 November 2009 04:23
> I don't understand the question :blush:
> Do you mean that you have a xml coming from an UML model and you would like to create java code or would you like to create graphical views ?


Yes, I have a XMI that coming from an UML model. But I don't want to create java code or graphical views rather simple load the XMI model for count all classes in it.

With an new xmi file (3.0.1 uml Tag) it works but older models could not be load.

Ed Merks wrote on Thu, 05 November 2009 06:39
> Maybe the details for "Programmatic Migration" here are similar:
>
> http://www.eclipse.org/modeling/mdt/uml2/docs/guides/UML2_2 0_Migration_Guide/guide.html

I have read it but don't find the methods for programmatic migration.
Re: Load a XMI file with xmlns:uml tag < 3.0.0 [message #628031 is a reply to message #628030] Fri, 06 November 2009 13:45 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 26283
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------060002060803030107000608
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

When you say you don't find it, are you saying you didn't find the
section like this or it didn't work?


Programmatic Migration


In order to migrate models programmatically, some setup is required
in order to register mappings (already defined by UML). These
mappings will be used by the resource set during the loading stage
and will perform the necessary in-memory migration.

The example below demonstrates how one can migrate models with a
stand-alone application.




HTWTeam wrote:
> Vlad Varnica wrote on Thu, 05 November 2009 04:23
>> I don't understand the question :blush: Do you mean that you have a
>> xml coming from an UML model and you would like to create java code
>> or would you like to create graphical views ?
>
>
> Yes, I have a XMI that coming from an UML model. But I don't want to
> create java code or graphical views rather simple load the XMI model
> for count all classes in it.
>
> With an new xmi file (3.0.1 uml Tag) it works but older models could
> not be load.
>
> Ed Merks wrote on Thu, 05 November 2009 06:39
>> Maybe the details for "Programmatic Migration" here are similar:
>> http://www.eclipse.org/modeling/mdt/uml2/docs/guides/UML2_2
>> 0_Migration_Guide/guide.html
>
> I have read it but don't find the methods for programmatic migration.

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

<!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">
When you say you don't find it, are you saying you didn't find the
section like this or it didn't work?<o:p> </o:p>
<blockquote>
<h2><!--[if gte vml 1]><v:shape id="_x0000_i1045" type="#_x0000_t75" alt=""
style='width:9.75pt;height:9.75pt'>
<v:imagedata src="" o:href="http://www.eclipse.org/modeling/mdt/images/new.gif"/>
</v:shape><![endif]--><span
style=""> </span>Programmatic
Migration</h2>
<p class="MsoNormal"><o:p> </o:p><br>
In order to migrate models programmatically, some setup is
required in order to register mappings (already defined by UML).<span
style="">  </span>These mappings will be used by the resource
set during the loading stage and will perform the necessary in-memory
migration.</p>
<p class="MsoNormal"><o:p> </o:p>The example below demonstrates how
one can <span class="GramE">migrate</span> models with a stand-alone
application.<br>
</p>
</blockquote>
<p class="MsoNormal"><br>
</p>
<br>
<br>
HTWTeam wrote:
<blockquote cite="mid:hd0sf0$tac$1@build.eclipse.org" type="cite">Vlad
Varnica wrote on Thu, 05 November 2009 04:23
<br>
<blockquote type="cite">I don't understand the question  :blush: Do
you mean that you have a xml coming from an UML model and you would
like to create java code or would you like to create graphical views ?
<br>
</blockquote>
<br>
<br>
Yes, I have a XMI that coming from an UML model. But I don't want to
create java code or graphical views rather simple load the XMI model
for count all classes in it.
<br>
<br>
With an new xmi file (3.0.1 uml Tag) it works but older models could
not be load.
<br>
<br>
Ed Merks wrote on Thu, 05 November 2009 06:39
<br>
<blockquote type="cite">Maybe the details for "Programmatic
Migration" here are similar: <br>
  <a class="moz-txt-link-freetext" href="http://www.eclipse.org/modeling/mdt/uml2/docs/guides/UML2_2">http://www.eclipse.org/modeling/mdt/uml2/docs/guides/UML2_2</a>.
0_Migration_Guide/guide.html
<br>
</blockquote>
<br>
I have read it but don't find the methods for programmatic migration.
<br>
</blockquote>
</body>
</html>

--------------060002060803030107000608--
Previous Topic:Load a XMI file with xmlns:uml tag < 3.0.0
Next Topic:[Announce] Eclipse/OMG Symposium 2010
Goto Forum:
  


Current Time: Fri Dec 19 16:29:52 GMT 2014

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

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