作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2009, Vol. 35 ›› Issue (24): 66-68. doi: 10.3969/j.issn.1000-3428.2009.24.022

• 软件技术与数据库 • 上一篇    下一篇

基于接口定义的异构数据有效性验证方法

杨铁军,牛秦洲,黄 琳   

  1. (桂林工学院电计系,桂林 541004)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2009-12-20 发布日期:2009-12-20

Method of Heterogeneous Data Validation Based on Interface Definition

YANG Tie-jun, NIU Qin-zhou, HUANG Lin   

  1. (Department of Electronics and Computer Science, Guilin University of Technology, Guilin 541004)
  • Received:1900-01-01 Revised:1900-01-01 Online:2009-12-20 Published:2009-12-20

摘要: 给出一种异构环境下多模块通用的数据有效性验证方法。该方法运用接口定义语言的通用“接口定义”思想,使用数据验证配置XML文件定义公共的数据验证项,使用类C语言定义通用的数据验证接口,各模块根据定义的接口实现数据验证功能并举例说明。该方法使数据验证的维护可以通过直接修改公用的配置文件快速实现,避免了多模块重复修改,提高了软件开发效率。

关键词: 接口定义语言, 数据有效性验证, XML技术, 异构系统

Abstract: This paper proposes a general data validation method for multi-module in heterogeneous system. According to the “interface definition” of Interface Definition Language(IDL), it uses the Data validation Configure File(DCF) based on XML to store the definitions of data validating entries, uses a C-like language to define general data validation interfaces, and each module implements the interfaces accordingly to achieve data validation, which is proved by some examples. Through editing DCF directly, it makes the maintenance of data validation fast, and avoids the repeated modification of multi-module, which leads to the efficiency improvement of software development.

Key words: Interface Definition Language(IDL), data validation, XM technologyL, heterogeneous system

中图分类号: