摘要
为快速理解XML Schema文档结构,研究使用UML建模XML Schema文档的方法。分析已有研究的局限性,基于XML Schema定义的元素及元素间的嵌套关系的定义,提出一种基于元素的使用UML建模XML Schema文档的方法,定义将XML Schema文档转换为UML类图的转换规则。该建模方法可以为XML Schema文档包含的任何元素建立UML类并用UML模型中定义的关系表示元素间的嵌套关系,保证了XML Schema文档的UML模型表示的完整性。以实例验证了该方法的可行性。
To understand the structure of XML Schema document quickly,methods to model XML Schema document with UML were researched and limitations of current methods were analyzed.Based on definitions of elements and nested relation between elements defined in XML Schema,a method to model XML Schema with UML that based on elements was proposed.A UML class for each of the elements contained in a XML Schema document was created and nested relation between elements was described with corresponding relation defined in UML,which made sure the integrality of the UML model transformed from the XML Schema document.An example was given to verify the feasibility of the proposed method.
作者
纪斌
吴家菊
马永起
周本金
谢永辉
JI Bin;WU Jia-ju;MA Yong-qi;ZHOU Ben-jin;XIE Yong-hui(Institute of Computer Application,China Academy of Engineering Physics,Mianyang 621900,China)
出处
《计算机工程与设计》
北大核心
2019年第1期109-115,共7页
Computer Engineering and Design
基金
装备预研领域基金项目(61400040201)