东北大学学报(自然科学版) ›› 2006, Vol. 27 ›› Issue (12): 1327-1330.DOI: -

• 论著 • 上一篇    下一篇

面向方面的XML

姜岩;王国仁;   

  1. 东北大学信息科学与工程学院;东北大学信息科学与工程学院 辽宁沈阳110004;辽宁沈阳110004
  • 收稿日期:2013-06-23 修回日期:2013-06-23 出版日期:2006-12-15 发布日期:2013-06-23
  • 通讯作者: Jiang, Y.
  • 作者简介:-
  • 基金资助:
    国家自然科学基金资助项目(60573089)

Aspect-oriented XML

Jiang, Yan (1); Wang, Guo-Ren (1)   

  1. (1) School of Information Science and Engineering, Northeastern University, Shenyang 110004, China
  • Received:2013-06-23 Revised:2013-06-23 Online:2006-12-15 Published:2013-06-23
  • Contact: Jiang, Y.
  • About author:-
  • Supported by:
    -

摘要: 针对面向方面这种新型的编程方法进行分析,并对面向对象理论在解决XML文档定义时不足之处加以阐述,提出利用面向方面的编程方法对XML文档定义进行扩展,解决XML文档定义仅采用简单包含关系、代码重复、横切关注点的分散及扩充XML元素时必须对原有元素修改的问题.在XML文档定义中引入关注点这一概念和织入重要机制,使XML文档定义具有面向方面编程技术的功能.在XML Schema原有定义方式中增加aspect,pointcut和advice几个定义元素的标识元素.给出相应的表示符号,并用数学模型描述.结果表明这种定义方式减少系统中的代码重复,降低模块间的耦合,使之具有较好的模块性和可移植性.

关键词: XML, 面向对象, 面向方面, 关注点, 织入, 切入, 继承

Abstract: Analyzes the newly developed aspect-oriented programming approach and the disadvantages of object-oriented theory in defining XML document. Defining the XML document by aspect-oriented programming to extend it is proposed to solve the problems found in original definition, such as too simple relationship of inclusion, code redundancy, scattered crosscut concerns and having to modify original elements if extending XML elements. Introducing the concept of crosscut concerns and weaving them statically/dynamically into the definition of XML document enables the XML document to serve the function of aspect-oriented programming. So, the identification elements covering aspect, pointcut and advice are added to the original definition of XML Schema as defined ones, and some representative symbols are given to them correspondingly with mathematic descriptions. The results indicate that such a form of definition can reduce the system code redundancy and coupling degree of modules with better modularity and transportability grained.

中图分类号: