针对现有基于类图及文档的软件设计模式描述方法存在的问题.提出了一种基于可扩展标记语言架构的设计模式描述方法.该方法弥补了传统设计模式描述方法在动态信息方面描述的不足,使众多的设计模式更加规范化.能更好地被使用者理解、识别、搜索和管理.同时提供一种设计模式实例化一致性的校验方法,确保设计模式的关键性约束条件在具体设计中得以体现.
To eliminate the disadvantages of design patterns description of classical diagram and document design patterns, a formal representation of design patterns in software system based on XML is introduced in this paper. Not only the shortages of traditional design patterns in dynamic information are made up for, but also we standardize numerous design patterns and make better use of these patterns by this new formal representation. The procedure for verifying the consistency between original software design patterns and the instanfiated ones is gived also, so the key constraint conditions of design patterns can be realized i n practice.