Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Using emf and uml2 standalone parsing for a Magicdraw exported model
Using emf and uml2 standalone parsing for a Magicdraw exported model [message #476881] Thu, 24 January 2008 21:54 Go to next message
Eclipse UserFriend
Originally posted by: gkapi.mail.ntua.gr

Hello.

I am using Magicdraw 14.0, eclipse emf v. 2.3.1 and uml2 v. 2.1.1. I have a
UML model designed in Magicrdaw and then exported as UML2 (1.x ) EMF model.
In order to use emf and uml2 libraries as standalone I am following the
instrucitons given in:
http://dev.eclipse.org/newslists/news.eclipse.tools.uml2/msg 00833.html

My goal is to perform code generation based on the model stereotypes (using
EMF, UML2 libraries and Velocity templates). However, I am facing some
parsing
problems. The stereotypes used in classes, operations, etc, cannot be read
by
the relevant operation ( element.getAppliedStereotypes()), although they do
appear as applied stereotypes in the exported .uml2 files from Magicdraw.
A same problem appears with the datatypes of the element properties (the
getDatatype() method is not working). Again the datatypes appear normal in
the exported .uml2 files.
Do you know if there is a solution to the problem or if there is another
parsing way to use uml2 standalone ?standalone uml2

If not, is there a way to transfrom a org.eclipse.uml2.uml.Element to a
org.jdom.Element or to another XML parsing element ? This way I can combine
emf, uml2 and a number of xml parsing tools to get all the information I
need
from the model for the code generation.

If you need any more information let me know.

Thank you very much in advance.

Regards,
Georgina
Re: Using emf and uml2 standalone parsing for a Magicdraw exported model [message #476893 is a reply to message #476881] Tue, 29 January 2008 14:29 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Georgina

There is some code at the bottom of this document
http://www.eclipse.org/modeling/mdt/uml2/docs/guides/UML2_2. 0_Migration_Guide/guide.html
that is an example of running stand-alone.

The UML FAQ also has some information regarding running stand-alone.

If that still doesn't work You might need to post a sample of your model and
profile that illustrates the problem.

Cheers,
- James.

"Georgina" <gkapi@mail.ntua.gr> wrote in message
news:beaae0fdb78c4e7064c32959ac11835d$1@www.eclipse.org...
> Hello.
>
> I am using Magicdraw 14.0, eclipse emf v. 2.3.1 and uml2 v. 2.1.1. I have
> a
> UML model designed in Magicrdaw and then exported as UML2 (1.x ) EMF
> model.
> In order to use emf and uml2 libraries as standalone I am following the
> instrucitons given in:
> http://dev.eclipse.org/newslists/news.eclipse.tools.uml2/msg 00833.html
>
> My goal is to perform code generation based on the model stereotypes
> (using
> EMF, UML2 libraries and Velocity templates). However, I am facing some
> parsing
> problems. The stereotypes used in classes, operations, etc, cannot be read
> by
> the relevant operation ( element.getAppliedStereotypes()), although they
> do
> appear as applied stereotypes in the exported .uml2 files from Magicdraw.
> A same problem appears with the datatypes of the element properties (the
> getDatatype() method is not working). Again the datatypes appear normal in
> the exported .uml2 files.
> Do you know if there is a solution to the problem or if there is another
> parsing way to use uml2 standalone ?standalone uml2
>
> If not, is there a way to transfrom a org.eclipse.uml2.uml.Element to a
> org.jdom.Element or to another XML parsing element ? This way I can
> combine
> emf, uml2 and a number of xml parsing tools to get all the information I
> need
> from the model for the code generation.
>
> If you need any more information let me know.
>
> Thank you very much in advance.
>
> Regards,
> Georgina
>
Re: Using emf and uml2 standalone parsing for a Magicdraw exported model [message #625949 is a reply to message #476881] Tue, 29 January 2008 14:29 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Georgina

There is some code at the bottom of this document
http://www.eclipse.org/modeling/mdt/uml2/docs/guides/UML2_2. 0_Migration_Guide/guide.html
that is an example of running stand-alone.

The UML FAQ also has some information regarding running stand-alone.

If that still doesn't work You might need to post a sample of your model and
profile that illustrates the problem.

Cheers,
- James.

"Georgina" <gkapi@mail.ntua.gr> wrote in message
news:beaae0fdb78c4e7064c32959ac11835d$1@www.eclipse.org...
> Hello.
>
> I am using Magicdraw 14.0, eclipse emf v. 2.3.1 and uml2 v. 2.1.1. I have
> a
> UML model designed in Magicrdaw and then exported as UML2 (1.x ) EMF
> model.
> In order to use emf and uml2 libraries as standalone I am following the
> instrucitons given in:
> http://dev.eclipse.org/newslists/news.eclipse.tools.uml2/msg 00833.html
>
> My goal is to perform code generation based on the model stereotypes
> (using
> EMF, UML2 libraries and Velocity templates). However, I am facing some
> parsing
> problems. The stereotypes used in classes, operations, etc, cannot be read
> by
> the relevant operation ( element.getAppliedStereotypes()), although they
> do
> appear as applied stereotypes in the exported .uml2 files from Magicdraw.
> A same problem appears with the datatypes of the element properties (the
> getDatatype() method is not working). Again the datatypes appear normal in
> the exported .uml2 files.
> Do you know if there is a solution to the problem or if there is another
> parsing way to use uml2 standalone ?standalone uml2
>
> If not, is there a way to transfrom a org.eclipse.uml2.uml.Element to a
> org.jdom.Element or to another XML parsing element ? This way I can
> combine
> emf, uml2 and a number of xml parsing tools to get all the information I
> need
> from the model for the code generation.
>
> If you need any more information let me know.
>
> Thank you very much in advance.
>
> Regards,
> Georgina
>
Previous Topic:static profiles - not working ;)
Next Topic:xmi 2.1 / uml 2.x to xmi 1.1 / uml 1.3 ?
Goto Forum:
  


Current Time: Fri Aug 12 22:22:44 GMT 2022

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

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

Back to the top