SYSTEM & METHOD OF MAPPING BETWEEN SOFTWARE OBJECTS & 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.
申请公布号
WO02101579(A1)
申请公布日期
2002.12.19
申请号
WO2001US49577
申请日期
2001.12.28
申请人
INTERNATIONAL BUSINESS MACHINES CORPORATION;BEISIEGEL, MICHAEL;GREEN, JOHN, H.;WARFIELD, JAY, W.
发明人
BEISIEGEL, MICHAEL;GREEN, JOHN, H.;WARFIELD, JAY, W.