Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [mdt-uml2.dev] Using emf and uml2 standalone parsing for aMagicdraw exported model

Georgina,

Please use the eclipse.modeling.mdt.uml2 newsgroup for questions about
UML2.

Cheers,

Kenn Hussey
Program Manager, EA/Studio

[Embarcadero Technologies Logo]

Embarcadero Technologies, Inc. | www.embarcadero.com 
110 Spadina Avenue, Suite 400 | Toronto, ON  M5V 2K4
Kenn.Hussey@xxxxxxxxxxxxxxx
Mobile: 613-301-9105


-----Original Message-----
From: mdt-uml2.dev-bounces@xxxxxxxxxxx
[mailto:mdt-uml2.dev-bounces@xxxxxxxxxxx] On Behalf Of Georgia Kapitsaki
Sent: Thursday, January 24, 2008 4:03 PM
To: mdt-uml2.dev@xxxxxxxxxxx
Subject: [mdt-uml2.dev] Using emf and uml2 standalone parsing for
aMagicdraw exported model


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/msg00833.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
_______________________________________________
mdt-uml2.dev mailing list
mdt-uml2.dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/mdt-uml2.dev


Back to the top