Skip to main content



      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
Eclipse UserFriend
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] by 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
Eclipse UserFriend
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
Eclipse UserFriend
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: Wed Jul 23 14:45:58 EDT 2025

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

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

Back to the top