Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Convert Java Source Code to XMI via UML2
Convert Java Source Code to XMI via UML2 [message #827520] Fri, 23 March 2012 08:44 Go to next message
Alan DW is currently offline Alan DW
Messages: 103
Registered: March 2012
Senior Member
Hello everyone,

I'm currently looking for a way to convert Java Source code into UML2 compatible XMI code - that's the main goal.
The idea that I came up with is to import the source code into UML2, creating the UML2 model which corresponds to the source code. Then, the last step required would be to run the default XMI serializer over that model.

The qusetion is: Is there a way to automatically generate an UML2 model from java source code? I need to do this programatically, though, not via using some tool.

Any suggestions?


Thanks,


Alan

[Updated on: Fri, 23 March 2012 08:45]

Report message to a moderator

Re: Convert Java Source Code to XMI via UML2 [message #834777 is a reply to message #827520] Mon, 02 April 2012 07:29 Go to previous messageGo to next message
urs zeidler is currently offline urs zeidler
Messages: 91
Registered: July 2009
Member
Am 23.03.2012 13:44, schrieb Alan DW:
> Hello everyone,
>
> I'm currently looking for a way to convert Java Source code into UML2
> compatible XMI code - that's the main goal. The idea that I came up with
> is to import the source code into UML2, creating the UML2 model which
> corresponds to the source code. Then, the last step required would be to
> run the default XMI serializer over that model.
>
> The qusetion is: Is there a way to import java source code into UML2? I
> need to do this programatically, though, not via using some tool.
>
> Any suggestions?
>
>
> Thanks,
>
>
> Alan
See http://www.topcased.org/
they have an UML importer for java code.

As this importer is a plugin you could use the importer in your code
just like I did.
http://opensource.urszeidler.de/ATLflow/html_0.0.25/generators/generators.html#UMLimporter

greeting, urs.
Re: Convert Java Source Code to XMI via UML2 [message #834991 is a reply to message #834777] Mon, 02 April 2012 12:52 Go to previous message
Alan DW is currently offline Alan DW
Messages: 103
Registered: March 2012
Senior Member
Thanks, I'll take a look at it Smile
Previous Topic:How to create a new DataType for EMF/Ecore in UML
Next Topic:Converting UML diagrams by simple java code parsing methods
Goto Forum:
  


Current Time: Mon Jul 28 02:24:35 EDT 2014

Powered by FUDForum. Page generated in 0.02969 seconds