XSD到UML命令行工具 [英] XSD to UML command line tool

查看:234
本文介绍了XSD到UML命令行工具的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道,是否有人遇到任何命令行工具(免费提供)将xml模式(xsd)转换为UML图?

I was wondering, does anyone come across any command line tool (free in preference) for translating an xml schema (xsd) to UML diagram?

.xsd用于表示类,因此可以使用UML类图.

The .xsd is used to represent classes, thus a UML class diagram would fit the purpose.

我对命令行工具更感兴趣,因为我想使其成为一种自动任务,因此我宁愿不必打开UI来执行它.

I would be more interested in a command line tool, as i would like to make it an automatic task, thus i would rather not have to open a UI to perform it.

我已经进行了一些在线研究,但是大多数工具确实需要UI交互.

I have done some online research but most of the tools do require UI interaction.

谢谢您的任何建议.

推荐答案

一个EMF Eclipse免费解决方案:

  • 安装Eclipse + EMF

    • Install Eclipse+EMF

      • 打开新建EMF生成器模型"向导(文件->新建->其他...-> EMF生成器模型)
      • 选择GenModel的位置和名称(通常是您要结束UML模型的位置)
      • 在下一页上,选择"XML Schema"作为导入源
      • 选择要在下一页上导入的架构
      • 向导的最后一页显示了将要创建的EMF模型,并允许您编辑它们的文件名(它们将位于同一位置) 与Genmodel一起使用)
      • 完成向导
      • 您应该最终为您的模式创建一个或多个* .ecore文件,并打开一个显示您新创建的Genmodel的编辑器.
      • 从编辑器的上下文菜单中选择导出模型...","UML模型",目标目录和所有要转换的模型(通常是所有 将是一个不错的选择)并完成操作.
      • Open the New EMF Generator model wizard (File->New->Other...->EMF Generator Model)
      • Choose a location and name for the GenModel (usually the place where you want your UML model to end up)
      • On the next page choose "XML Schema" as import source
      • Choose the Schema(s) to import on the next page
      • The final page of the wizard shows you the EMF models that will be created and lets you edit their file names (they will be co-located with teh Genmodel)
      • finish the wizard
      • you should end up with one or more *.ecore files for your schemas and an open editor showing your newly created Genmodel.
      • From the editor's context menu choose "Export model...", "UML Model", a target directory and all models to convert (usually all would be a good choice) and finish.

      您应该最终为您的模式使用UML模型,并且可能 ecore.uml和一些Ecore基础结构类.

    • You should end up with UML models for your schemas and probably an ecore.uml with some Ecore infrastructure classes.

      专有解决方案: Altova (免费30天), IBM Rational Arcitect (非标准UML),

      Proprietary solutions: Altova (30 days free), IBM Rational Arcitect (non-standard UML),

      这篇关于XSD到UML命令行工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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