摘要
通过一个实例分析了"过程化"的XML Schema设计的缺陷,提出将设计模式中的合成模式应用到XMLSchema的设计中,并通过一个改进后的实例说明应用合成模式可以使XML Schema具有继承、多态等良好的面向对象特性,从而提高代码的可重用性,可维护性和扩展性。
By analyzing the defects of procedural XML Schema design in a instance, this paper proposes application of composite pattern in XML Schema design, and by presenting a modified instance which makes use of composite pattern, the paper illustrates the improved XML Schema assume many object-oriented characteristics such as inheritance and polymorphism, leading to an enhanced reusability, maintainability and extensibility.
出处
《计算机与数字工程》
2009年第8期157-160,共4页
Computer & Digital Engineering