Help with UML2EcoreConverter [message #625233] |
Thu, 18 October 2007 13:16 |
Eclipse User |
|
|
|
This is a multi-part message in MIME format.
--------------080500010700000304070801
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Hi everybody.
I'm trying to convert uml into ecore programatically, and for that I
plan to use UML2EcoreConverter in the form
new UMLUtil.UML2EcoreConverter().convert(packages, null, null, null)
For that I've been inspecting
org.eclipse.uml2.uml.ecore.importer.UMLImporter, which probably led to
the current confusion.
I have a couple of questions to ask I you would be so kind to help me.
The first one (out of curiosity, let's say), is why does UMLImporter
define an anonymous subclass of UML2EcoreConverter?. I see it
specializes processEcoreTaggedValues, but I got lost on all the calls it
makes to other methods, and I can't see which new functionality it
provides, or why wasn't that functionality implemented inside
UML2EcoreConverter instead.
The second question is about UMLImporter's 'locationURIs' variable. Is
it to support the importation of multiple models at the same time?. And
if so, is it ok to do packages.addAll(umlresource.getContents()); ?
And the last question (seems that is more a triplet than a couple ;-) )
is the following:
assuming I understood what UML2EcoreConverter does, what I get as a
result of running UML2EcoreConverter().convert(..) is a collection with
an ecore representation of all the elements present in the uml input
file, am I right?. After that, shall I write (save) that content into an
Ecore file?, and where do I get the genmodel from?. (I lost trace of
what UMLImporter does after convert(), I know the result is contained in
ModelConverter's 'ePackages' variable)
Thank you all in advance for your help.
Regards,
Juan Pedro
--------------080500010700000304070801
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi everybody.<br>
I'm trying to convert uml into ecore programatically, and for that I
plan to use UML2EcoreConverter in the form<br>
<font face="Courier">new
UMLUtil.UML2EcoreConverter().convert(packages, null, null, null) <br>
<br>
</font>For that I've been inspecting <font face="Courier">org.eclipse.uml2.uml.ecore.importer.UMLImporter </font>,
which probably led to the current confusion.<br>
I have a couple of questions to ask I you would be so kind to help me.<br>
<br>
The first one (out of curiosity, let's say), is why does UMLImporter
define an anonymous subclass of UML2EcoreConverter?. I see it
specializes processEcoreTaggedValues, but I got lost on all the calls
it makes to other methods, and I can't see which new functionality it
provides, or why wasn't that functionality implemented inside <font
face="Courier">UML2EcoreConverter</font> instead.<br>
<br>
The second question is about UMLImporter's <font face="Courier">'locationURIs'
</font>variable. Is it to support the importation of multiple models at
the same time?. And if so, is it ok to do <font face="Courier">packages.addAll(umlresource.getContents());
</font>?<br>
<br>
And the last question (seems that is more a triplet than a couple ;-) )
is the following: <br>
assuming I understood what UML2EcoreConverter does, what I get as a
result of running <font face="Courier">UML2EcoreConverter().convert(..)</font>
is a collection with an ecore representation of all the elements
present in the uml input file, am I right?. After that, shall I write
(save) that content into an Ecore file?, and where do I get the
genmodel from?.<font face="Courier"> </font> (I lost trace of what
UMLImporter does after convert(), I know the result is contained in
ModelConverter's <font face="Courier">'ePackages'</font> variable) <br>
<br>
Thank you all in advance for your help.<br>
Regards,<br>
Juan Pedro<br>
<br>
</body>
</html>
--------------080500010700000304070801--
|
|
|
Powered by
FUDForum. Page generated in 0.03690 seconds