创建 UML 图的 Java 代码 [英] Java code which creates UML diagrams

查看:62
本文介绍了创建 UML 图的 Java 代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个程序,将 Java 源代码逆向工程为 UML 类图.我已经从源代码中读取了所有方法名称等,但我想知道是否有任何用于生成 UML 的内置 Java 方法,例如:

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);

鉴于我已经知道方法、类属性名称等,有没有类似的东西或者有任何我可以用来帮助绘制 UML 图的外部工具.

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.

推荐答案

看看 http:///en.wikipedia.org/wiki/List_of_Unified_Modeling_Language_tools.

列出的一些工具是用 Java 编写的,其中一些是开源的,其中一些能够在 XMI 格式.

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.

如果你想要轻量级的东西,那么 DoxygenGraphviz 既可以对 Java 源代码进行逆向工程,也可以使用 UML_LOOK

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

这篇关于创建 UML 图的 Java 代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆