Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » XMI tutorial
XMI tutorial [message #16559] Thu, 15 February 2007 13:30 Go to next message
Eclipse UserFriend
Originally posted by: walcir.fontanini.cenpra.gov.br

Hi,

I decided to build some UML "models" by hand (the "metamodels" were done
with KM3 sintax).
Where can I find a good tutorial on building a XMI file from an UML
class diagram ? The UML class "attributes" and "operations" elements are
easy to create, but relationships (composites, generalizations,
unidirectional), abstract classes in the middle and circular navigation
is becoming a problem.

Thanks,
-walcir
Re: XMI tutorial [message #16575 is a reply to message #16559] Thu, 15 February 2007 12:41 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

This is a multi-part message in MIME format.
--------------000403010300040209010401
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Walcir,

Maybe I'm misunderstanding your questions, but wouldn't it be *far
easier* to use the UML2 project's APIs to create an instance and then
serialize that as XMI?


walcir fontanini wrote:
> Hi,
>
> I decided to build some UML "models" by hand (the "metamodels" were
> done with KM3 sintax).
> Where can I find a good tutorial on building a XMI file from an UML
> class diagram ? The UML class "attributes" and "operations" elements
> are easy to create, but relationships (composites, generalizations,
> unidirectional), abstract classes in the middle and circular
> navigation is becoming a problem.
>
> Thanks,
> -walcir


--------------000403010300040209010401
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Walcir,<br>
<br>
Maybe I'm misunderstanding your questions, but wouldn't it be <b>far
easier</b> to use the UML2 project's APIs to create an instance and
then serialize that as XMI?<br>
<br>
<br>
walcir fontanini wrote:
<blockquote cite="mider1jpv$ej0$1@utils.eclipse.org" type="cite">Hi,
<br>
<br>
I decided to build some UML "models" by hand (the "metamodels" were
done with KM3 sintax).
<br>
Where can I find a good tutorial on building a XMI file from an UML
class diagram ? The UML class "attributes" and "operations" elements
are easy to create, but&nbsp; relationships (composites, generalizations,
unidirectional), abstract classes in the middle and circular navigation
&nbsp;&nbsp; is becoming a problem.
<br>
<br>
Thanks,
<br>
-walcir
<br>
</blockquote>
<br>
</body>
</html>

--------------000403010300040209010401--
Re: XMI tutorial [message #16591 is a reply to message #16575] Thu, 15 February 2007 14:13 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: walcir.fontanini.cenpra.gov.br

Ed,

My main goal is to experiment with the ATL language, and the UML
"models" are just a imple input data.

-walcir
Ed Merks wrote:
> Walcir,
>
> Maybe I'm misunderstanding your questions, but wouldn't it be *far
> easier* to use the UML2 project's APIs to create an instance and then
> serialize that as XMI?
>
>
> walcir fontanini wrote:
>
>> Hi,
>>
>> I decided to build some UML "models" by hand (the "metamodels" were
>> done with KM3 sintax).
>> Where can I find a good tutorial on building a XMI file from an UML
>> class diagram ? The UML class "attributes" and "operations" elements
>> are easy to create, but relationships (composites, generalizations,
>> unidirectional), abstract classes in the middle and circular
>> navigation is becoming a problem.
>>
>> Thanks,
>> -walcir
>
>
Re: XMI tutorial [message #16605 is a reply to message #16591] Thu, 15 February 2007 13:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Walcir,

That doesn't really answer the question. UML is complex and XMI is
complex, so to create a complex serialization of a complex model, by
hand, in order to end up with simple (and correct) input data, seems
like a very complex problem that could be reduced to just a complex
one. I must be misunderstanding some aspect of this...


walcir fontanini wrote:
> Ed,
>
> My main goal is to experiment with the ATL language, and the UML
> "models" are just a imple input data.
>
> -walcir
> Ed Merks wrote:
>> Walcir,
>>
>> Maybe I'm misunderstanding your questions, but wouldn't it be *far
>> easier* to use the UML2 project's APIs to create an instance and then
>> serialize that as XMI?
>>
>>
>> walcir fontanini wrote:
>>
>>> Hi,
>>>
>>> I decided to build some UML "models" by hand (the "metamodels" were
>>> done with KM3 sintax).
>>> Where can I find a good tutorial on building a XMI file from an UML
>>> class diagram ? The UML class "attributes" and "operations" elements
>>> are easy to create, but relationships (composites, generalizations,
>>> unidirectional), abstract classes in the middle and circular
>>> navigation is becoming a problem.
>>>
>>> Thanks,
>>> -walcir
>>
>>
Re: [ATL] XMI tutorial [message #16639 is a reply to message #16605] Thu, 15 February 2007 15:01 Go to previous message
Eclipse UserFriend
Originally posted by: freddy.allilaire.univ-nantes.fr

Hi Walcir,

If you are using KM3 to create a metamodel, you need other "tools" to
create an input model that conforms to your metamodel (unless you want
to use KM3 models as input).

Build some UML models will only be useful if the UML metamodel is an
input metamodel of your ATL transformation (i.e. if you want to
transform UML models).

I advise you against writing XMI file by hand. As Ed said, it's complex.
If you want to use visual tools, you can take a look to GMF, Topcased, etc.

Regards,
Freddy.

Ed Merks a écrit :
> Walcir,
>
> That doesn't really answer the question. UML is complex and XMI is
> complex, so to create a complex serialization of a complex model, by
> hand, in order to end up with simple (and correct) input data, seems
> like a very complex problem that could be reduced to just a complex
> one. I must be misunderstanding some aspect of this...
>
>
> walcir fontanini wrote:
>> Ed,
>>
>> My main goal is to experiment with the ATL language, and the UML
>> "models" are just a imple input data.
>>
>> -walcir
>> Ed Merks wrote:
>>> Walcir,
>>>
>>> Maybe I'm misunderstanding your questions, but wouldn't it be *far
>>> easier* to use the UML2 project's APIs to create an instance and then
>>> serialize that as XMI?
>>>
>>>
>>> walcir fontanini wrote:
>>>
>>>> Hi,
>>>>
>>>> I decided to build some UML "models" by hand (the "metamodels" were
>>>> done with KM3 sintax).
>>>> Where can I find a good tutorial on building a XMI file from an UML
>>>> class diagram ? The UML class "attributes" and "operations" elements
>>>> are easy to create, but relationships (composites, generalizations,
>>>> unidirectional), abstract classes in the middle and circular
>>>> navigation is becoming a problem.
>>>>
>>>> Thanks,
>>>> -walcir
>>>
>>>
Previous Topic:[ATL] New ATL use case: Software Build Tools Interoperability (Make, Ant, Maven)
Next Topic:How to create safe "models"
Goto Forum:
  


Current Time: Thu Apr 25 15:22:10 GMT 2024

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

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

Back to the top