如何将 Together Support UML 转换为通用 UML

发布于 2024-09-28 14:15:41 字数 818 浏览 8 评论 0原文

我的问题很简单。我为 Delphi 2007 创建了一个类库,并向其中添加了 Delphi 提供的建模支持。它为我的代码生成了很好的类概述,我想使用它。但这还不够。我想将生成的 UML 导出到 Altova 的 UModel 以生成一些附加文档和外观更漂亮的模型。
不过,我找不到从 Delphi 导出 UML 的方法。除了允许我保存的类模型图像之外,我什至在 Delphi 中找不到任何可以帮助我生成任何其他文档的内容。


我的类库的主要问题是,虽然它的使用很简单,但它的创建却相当复杂。我使用了多种技术来封装功能、类型中的类型、接口和委托、类型别名等等。结果实际上是三个看起来简单的类,它们仅公开调用特定 Web 服务所需的方法,其中一个类用于 WS 本身,一个类用于管理输入,一个类用于管理输出。因此,类接口保持简单以使其使用简单。不幸的是,WS 的复杂性要求我创建一些复杂的代码。
我现在需要为此代码生成两种文档。一份简单的文档解释了如何使用它。那个很简单。第二个解释了如何维护代码、代码在哪里、如何以及为何做出某些决定。这个很复杂,需要我对整个事情进行建模。
我有 UModel,这是一个很棒的产品,特别是对于 C# 和 Java 代码。不幸的是,它无法导入 Delphi 代码。我尝试过Enterprise Architect,它可以管理Delphi代码,但这个代码恰好太复杂了。 EA 对类型中的类型以及我使用过的其他功能一无所知。
也尝试过StarUML,但使用10分钟后不得不哭,因为该产品真的很糟糕...而且甚至不支持Delphi...安装后我的硬盘感觉真的很脏.. .
虽然我可以继续尝试其他建模工具,但我认为我应该有更好的机会找到某种方法将 Together UML 内容转换为常规 XMI 文件。

My problem is a simple one. I've created a class library for Delphi 2007 and added the modelling support to it that Delphi offers. It generates nice class overviews of my code, which I'd like to use. But it's not enough. I want to export the generated UML to Altova's UModel to generate some additional documentation and nicer-looking models.
I can't find a way to export the UML from Delphi, though. I can't even find anything in Delphi that would help me to generate any other documentation, except for the class model images that it allows me to save.


My main problem with my class library is that while it's usage is simple, it's creation was quite complex. I've used several techniques to encapsulate functionality, types within types, interfaces and delegations, type aliases and a lot more. The result is actually three simple-looking classes that only expose methods needed to call a specific web service with one class for the WS itself, one class to manage the input and one to manage the output. The class interface is thus kept simple to make it's usage simple. Unfortunately, the complexity of the WS required me to create some complex code.
I need to generate two kinds of documentation now for this code. One simple document that explains how it's used. That one is simple. A second one that explains how to maintain the code, what is where and how and why certain decisions have been taken. That one is complex and requires me to model the whole thing.
I have UModel, which is a great product, especially with C# and Java code. Unfortunately, it can't import Delphi code. I've tried Enterprise Architect, which can manage Delphi code, but this code happens to be way too complex. EA doesn't understand a thing about types within types and other features I've used.
Also tried StarUML but had to cry after 10 minutes of usage since that product is just real bad... And doesn't even support Delphi... My hard disk feels real dirty now after I've installed it...
And while I could continue to try other modelling tools, I think I should have a better chance in findiing some way to convert the Together UML stuff to a regular XMI file.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

倾城月光淡如水﹏ 2024-10-05 14:15:41

您可能想尝试 ModelMaker
它有一个插件,允许您将 UML 导出为 XMI,您可以导入 Altova UModel。
ModelMaker 支持 Delphi 和 C# 语言。

——杰罗恩

You might want to try ModelMaker.
It has an add-on that allows you to export the UML as XMI, which you can import in Altova UModel.
ModelMaker supports both the Delphi and C# language.

--jeroen

不再让梦枯萎 2024-10-05 14:15:41

恐怕没有“常规 XMI 文件”之类的东西(例如,请参见 此示例,显示同一模型的 XMI 表示形式的差异,具体取决于您使用的工具)。

I'm afraid there's no such thing as "regular XMI file" (see for instance this example, that shows the differences in the XMI representation of the same model depending on the tool you use).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文