摘要
将UML模型信息转换成XMI中间标准格式,能够实现模型到模型转换,模型到代码自动生成,加快系统开发进度,提高软件质量。首先介绍了MDA,UML,XMI以及构造类图等基本概念,然后提出一种UML类图到XMI的映射算法,并根据XMI模式定义和UML类图映射规则对映射算法进行具体描述。最后通过一个具体的构造型类图到XMI的映射实例进行算法验证。实例表明提出的算法是切实可行的。
Transforming the UML model information into XMI standard format can realize transformation between models and generating code from model automatically,speed up the progress of system development and improve the quality of software. Firstly this paper introduces some basic concepts,such as MDA,UML,XMI,Stereotype Class diagram,then it proposes a method of UML Stereotype Class diagram mapping to XMI,and represented the mapping algorithm according to XMI schema definition and the mapping rules for UML Stereotype Class diagrams. Finally it verifies the algorithm by using a specific example of the UML Stereotype Class diagram mapping to XMI. The example shows that the algorithm is feasible.
出处
《安阳师范学院学报》
2015年第2期36-39,共4页
Journal of Anyang Normal University