简体   繁体   中英

Looking for ways to create UML model from Java source

What is the best way to document Java sources in UML? I know class diagrams , package diagrams and object diagram . What else should be documented? And is there any recommendation for a tool to support documentation?

Use an UML modeling tool with some kind of code reverse engineering support so that it can create some basic diagrams automatically from your existing code.

Creation of the rest requires manual work and some imagination and some thinking on your side. There's no magic tool. That would be your task/work/effort.

To find out what might the " UML beside classes... " browse through

From Java code, you can get the class diagram including relationships (relation diagram does not exist). Object diagram is for describing runtime instances.

If you have your Java code in a Git repository, you can get the corresponding UML model online using the GenMyModel reverse engineering feature ( get started , documentation ).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM