• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Code to UML

 
Lucky Singh
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have some Java code. Is there a tool where I can use the code as input and generate UML diagrams?
 
miguel lisboa
Ranch Hand
Posts: 1281
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
magicdraw does it, and the inverse too
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are a couple of tools.

What do you need the diagrams for?
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rose and any of the big players have "reverse engineering" features.

You almost certainly will hate the results, though. The tools take every miniscule bit of the code literally and show way too much detail. One value of modeling is to abstract away the things that don't matter to reveal the things that do matter. Reverse engineering usually buries you in detail so it's no easier to find the things that matter than it was by reading code.
[ March 28, 2005: Message edited by: Stan James ]
 
Lucky Singh
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Its part of a project where I need to analyze code. I guess analyze means to draw the UML diagrams.

Also, I tried using magicdraw. You require the commercial edition to reverse engineer. The community edition does not allow you to convert Java code to UML.

I have Poseidon but reverse engineering is not for the community edition. We need a commercial edition for reverse engineering in Poseidon as well.

Can someone suggest some tool which is free and available on the net?
[ March 27, 2005: Message edited by: Lucky Singh ]
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Lucky Singh:
Its part of a project where I need to analyze code. I guess analyze means to draw the UML diagrams.


To "analyzing code" means to try to *understand* the code. It might be a good idea to draw some UML as a rough map to help you not get lost, or to help communicate your understandings to others. I wouldn't expect automatically generating UML from code to be of great help, though.

Your mileage may vary...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic