摘要
本文给出了统一建模语言(UML)类模型和XML Schema的转换方法,为模型驱动体系结构(MDA)的实现提供了基础。UML被MDA用来描述各种模型,成为建模语言事实上的标准;XML以其结构性、标签性、可扩展性和可移植性成为数据交换方面的标准技术,广泛地应用于计算机软件。对用于实现MDA的UML类模型和XSD的转换进行了研究:分析了UML类图的关联、继承、组合和聚合关系,实现UML类模型和XML Schema的转换,最终生成XML文档。
This paper presents a translation method to change UML class diagram to XML Schema, which provides the basis of realization of MDA ( Model - driven architecture). UML is used to describe a variety of models by MDA . UML is an actual standard of modeling language. Extensible Markup Language (XML) has become a standard technology in exchange of a wide variety of data for its structure, label, expansibility and portability. It is widely applied in field of computer software. Studying to change UML class diagram into XML Schema for the realization of the MDA and analyzing association, inheritance, aggregation and combination of UML class diagram in order to change MDA class diagram into XML Schema, thereafter the XML Schema can be available eventually.
出处
《信息技术与信息化》
2009年第2期49-52,共4页
Information Technology and Informatization