摘要
为快速理解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.
引文
[1]HUANG Long,YANG Yuhang.Transformation from XML Schema to UML class diagram based on meta model[J].Computer Engineering and Application,2010,46(23):59-60(in Chinese).[黄陇,杨宇航.基于元模型的XML Schema到UML类图的转换[J].计算机工程与应用,2010,46(23):59-60.]
[2]Chen Xu,Yan Li,Li Weijun,et al.Reengineering fuzzy spatiotemporal UML data model into fuzzy spatiotemporal XML model[J].IEEE Access,2017(6):17975-17987.
[3]XIONG Yonggang,TANG Huijia.Implementing transformation from UML model to XML document based on XMI[J].Computer Applications and Software,2010,27(4):68-70(in Chinese).[熊永刚,唐慧佳.基于XMI的UML模型到XML文档转换的实现[J].计算机应用与软件,2010,27(4):68-70.]
[4]Noreddine G,Khaoula A, Mohamed B.A framework for mapping UML class into XML data based on technical specification[C]//International Conference on Multimedia Computing and Systems,2012:749-754.
[5]Salim FD,Price R,Krishnaswamy S,et al.UML documentation support for XML schema[C]//Australian Software Engineering Conference,2004.
[6]LIU Hongxing, LU Yansheng, CHEN Ming. An XML conceptual model-XUML[J].Computer Science,2007,34(1):88-91(in Chinese).[刘洪星,卢炎生,陈明.一种XML概念模型-XUML[J].计算机科学,2007,34(1):88-91.]
[7]WANG Zhongbo,LUO Xiling,QI Ming.Research and implementation of flight information exchage model based on UML and XSD[J].Computer Technology and Development,2017,27(4):139-144(in Chinese).[王忠波,罗喜伶,齐鸣.基于UML和XSD的航班信息交换模型研究与实现[J].计算机技术与发展,2017,27(4):139-144.]
[8]Hannani A,Rosziati I.Reverse engineering:From XML to UML for generation of software requirement specification[C]//International Conference on Information Technology in Asia,2013:1-6.
[9]Michael JD,Kyle S,Michael LC,et al.A tool for efficiently reverse engineering accurate UML class diagram[C]//IEEE International Conference on Software Maintenance and Evolution,2016:607-609.
[10]Chamitha RN,Kaneeka V.UML generator-An automated system for model driven development[C]//International Conference on Advances in ICT for Emerging Regions,2016:250-256.
[11]W3C.W3CXML Schema definition language(XSD)1.1Part 1:Structures[EB/OL].[2017-11-28].https://www.w3.org/TR/xmlschema11-1/.
[12]W3C.W3CXML Schema definition language(XSD)1.1Part 2:Datatypes[EB/OL].[2017-11-28].https://www.w3.org/TR/xmlschema11-2/.