Java code which creates UML diagrams

给你一囗甜甜゛ 提交于 2019-12-11 20:43:17

问题


I'm creating a program that will reverse engineer Java Source code into a UML class diagram. I have it reading all of the method names etc already from the source code but I'm wondering if there is any inbuilt Java methods for generating UML such as something like:

UMLdiagram u = new UMLdiagram();
Class c = new Class();
u.addClass(c);

Is there anything like this or are there any external tools I could use to help draw the UML diagram given that I already know methods, class attribute names etc.


回答1:


Take a look at http://en.wikipedia.org/wiki/List_of_Unified_Modeling_Language_tools.

Some of the tools listed are in Java, some of them are open source and some of them are able to create UML diagrams in the XMI format.

If you want something light-weight, then Doxygen together with Graphviz can both reverse-engineer Java source code and automatically generate class diagrams with UML_LOOK



来源:https://stackoverflow.com/questions/26504009/java-code-which-creates-uml-diagrams

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!