王岳昭, 冒东奎. Java绑定XML架构的技术内涵[J]. 北京工业大学学报, 2006, 32(3): 263-268.
    引用本文: 王岳昭, 冒东奎. Java绑定XML架构的技术内涵[J]. 北京工业大学学报, 2006, 32(3): 263-268.
    WANG Yue-zhao, MAO Dong-kui. Technological Meaning of Java Architecture for XML Binding[J]. Journal of Beijing University of Technology, 2006, 32(3): 263-268.
    Citation: WANG Yue-zhao, MAO Dong-kui. Technological Meaning of Java Architecture for XML Binding[J]. Journal of Beijing University of Technology, 2006, 32(3): 263-268.

    Java绑定XML架构的技术内涵

    Technological Meaning of Java Architecture for XML Binding

    • 摘要: 为了揭示Java绑定可扩展标记语言(XML)架构的技术内涵,分析了该应用编程接口(API)的开发背景,揭示了它的技术本质,论述了它的工作机理、核心组件、绑定过程的关键操作,即:用绑定编译器绑定XML文件的模式,生成模式导出类和接口,并将它们编译;解组过程将模式导出的Java类实例化成内容对象,表示XML文件的内容和结构,让应用程序可直接访问;在生成内容树之前,解组过程可有选择地验证XML文件;借助绑定编译器生成的接口,客户应用可修改内容树所表示的XML数据;所处理的内容树可被编组成1种或多种XML输出文件.给出了1个典型用例,并指出该API在开发XML Web服务和网络应用方面有很好的应用前景.

       

      Abstract: For sake of revealing the technological meaning of Java Architecture for XML binding (JAXB), this article analyzed the development background of the API to unveil its technological essentials, then discussed the mechanism, core components and key manipulations for binding procedure, i.e. to bind Schema of XML with binding compiler to generate classes and interfaces derived from Schema for compiling; to instantiate the classes derived from the Schema into content objects to express the content and structure of XML files for direct access by application program during the unmarshalling procedure; before generating a content tree, the unmarshalling procedure can optionally validate XML files; by means of interfaces generated from the compiler, client application can modify XML data expressed by the content tree; the treated content tree can be marshaled into one or more kinds of XML output files. Finally the author pointed out a considerable application perspective of the API in development of Web services and network applications by a typical instance.

       

    /

    返回文章
    返回