首页>
外国专利>
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.
展开▼