首页> 外国专利> System and method of mapping between software objects and structured language element based documents

System and method of mapping between software objects and structured language element based documents

机译:在软件对象和基于结构化语言元素的文档之间进行映射的系统和方法

摘要

Method and system that provides common framework for mapping between document (e.g. an XML document) and software object (e.g. a Java object). Framework uses handler that masks how property is obtained for mapping. Results in mapping code have a common appearance for both directions of mapping. Mapping between elements of XML document and properties of Java object is contained in mapper. Mapper maps from XML document (108) to object (110) using parser (104) (such as DOM or SAX). Mapping in other direction (Java to XML) requires that elements of XML document (118) be built in particular order to ensure validity of resulting XML document (118). Present invention builds XML template document using JSP for example. Using JSP based templates enables tags of document be written in the JSP with callbacks to get element and attribute values. Content can be directed to buffer, or directly to response stream of servlet.
机译:提供用于在文档(例如,XML文档)和软件对象(例如,Java对象)之间进行映射的通用框架的方法和系统。框架使用处理程序来掩盖如何获取属性以进行映射。映射代码的结果在两个映射方向上具有相同的外观。 XML文档的元素和Java对象的属性之间的映射包含在映射器中。映射器使用解析器(104)(例如DOM或SAX)从XML文档(108)映射到对象(110)。在其他方向上的映射(Java到XML)要求以特定方式构建XML文档(118)的元素,以确保生成的XML文档(118)的有效性。例如,本发明使用JSP构建XML模板文档。使用基于JSP的模板可以将文档标签与回调一起写入JSP,以获取元素和属性值。内容可以定向到缓冲区,也可以直接定向到servlet的响应流。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号