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

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.

<!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>