如何从xmi文件生成序列图

发布于 2024-10-02 05:40:33 字数 39 浏览 1 评论 0原文

请帮我 如果有人对此问题有答案。

谢谢 普拉尚特

Please help me
if any have ans for this question.

Thanks
Prashant

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

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

发布评论

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

评论(5

轻拂→两袖风尘 2024-10-09 05:40:33

这个问题本身没有意义。 XMI 是 UML(以及上面针对任何基于 MOF 的语言所指出的)模型的存储格式。因此,XMI 文件将包含 UML 项目的类图、序列图等。

因此,任何能够加载此类 UML 图的工具都能够显示其中包含的序列图。

但可能发生的情况是 XMI 文件不包含图表的图形布局信息。因此,您可以导入模型信息,但该工具可能不会以图形方式显示它们。您可能需要浏览模型,然后逐一获取模型元素并将它们重新放置在画布中。

This question does not make sense as such. XMI is a storage format for UML (and as pointed out above for any MOF-based language) models. Therefore a XMI file will contain the class diagram, sequence diagram, ... of your UML project.

Therefore, any tool able to load such UML diagram will be able to show the sequence diagram contained in it.

What may happen though is that the XMI file does not include the graphical layout information of your diagrams. So, you may import the model information but the tool may not display them graphically. You may need to browse the model, and one by one, take the model elements and reposition them in the canvas.

做个ˇ局外人 2024-10-09 05:40:33

是的,您可以为序列图生成xmi文件,并且很容易实现它
只需检查下面的链接,您就可以了解所有想法。

http://www.umlgraph.org/

Yes You can generate xmi file for sequence diagram and it's very easy to implement it
just check below link, you can get all idea.

http://www.umlgraph.org/

混吃等死 2024-10-09 05:40:33

假设XMI文件代表一个序列图,那么您需要找到一个读取XMI文件的UML工具,加载该文件,然后将文件发送到打印机。

此页面包含支持 XMI 的 UML 工具列表。

如果 XMI 文件用于某种其他类型的 UML 图,或者根本不是 UML*,那么简单的答案是您不能这样做。

* 鲜为人知的事实是,OMG XMI 规范实际上为任何具有基于 OMG MOF 元模型的建模语言定义了 XML 序列化。 XMI/UML 只是一个示例。

Assuming that the XMI file represents a sequence diagram, then you need to find a UML tool that reads XMI files, load the file and then send the file to the printer.

This page includes a list of UML tools that are XMI capable.

If the XMI file is for some other kind of UML diagram, or something that is not UML at all*, then the simple answer is that you can't do it.

* It is a little known fact that the OMG XMI specification actually defines an XML serialization for any modeling language that has a OMG MOF-based metamodel. XMI/UML is just one example.

岁月静好 2024-10-09 05:40:33

我不同意乔迪的观点。 XMI 文档描述了一个模型。
模型与其表示(图表)不同,但模型也可能旨在描述属于第一个模型的元素的描述方式。
例如,在 TopCased(一个基于 Eclipse 建模框架的 CASE 工具)中,图表本身就是一个模型。所以你可以,而且我实际上也这样做了,因此这是可能的,看看 TopCased 如何在 XMI 中描述图表,并尝试从模型的 XMI 生成它。

祝你好运

I do not agree with Jordi. An XMI document describes a model.
A model is different from its representation (diagrams) which could however be a model too aimed at describing the way elements belonging to the first model should be depicted.
In TopCased for instance, a CASE tool based on the Eclipse Modeling Framework, a diagram is a model itself. So you could, and I actually did it thus it is possible, look at how TopCased describes diagrams in XMI and try to generate it from the XMI of your models.

Good Luck

掩耳倾听 2024-10-09 05:40:33

这里的部分混淆是 UML 1 XMI 不包含图表布局信息,而 UML 2 XMI 可以包含图表布局信息。因此 UML 2 XMI 既是模型又是表示(其优点值得商榷,但它简化了可移植性)。

Part of the confusion here is that UML 1 XMI did not contain diagram layout information, while UML 2 XMI can contain diagram layout information. So UML 2 XMI is both model and presentation (merits of this are debatable, but it eases portability).

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