Changes between Version 11 and Version 12 of ebXMLObjectModel


Ignore:
Timestamp:
Jul 21, 2008, 8:50:53 AM (16 years ago)
Author:
heikki
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ebXMLObjectModel

    v11 v12  
    4444In order to efficiently create an XML binding, that is to say the ability to marshal and unmarshal XML documents, the Java Beans implementation is decorated with a [http://jibx.sourceforge.net/ JiXB binding]. JiXB was chosen over other binding frameworks such as [http://xmlbeans.apache.org/ XMLBeans], [http://www.castor.org/ Castor] and [https://jaxb.dev.java.net/ JAXB] because of its [https://bindmark.dev.java.net/old-index.html high performance], ease of use, and non-intrusive programming model.
    4545
     46The core of the binding is an XML definition that relates XML elements to Java Beans. A simple snippet from the binding is the following, which relates a LocalizedString from the ebXML XSD to its Java Bean representation:
     47
     48 {{{
     49
     50        <mapping name="LocalizedString" class="org.geonetwork.ebxml.informationmodel.core.datatype.LocalizedString" >
     51                <value style="attribute" name="lang" field="lang" usage="optional"/>
     52                <value style="attribute" name="value" field="value" usage="optional" />
     53                <value style="attribute" name="charset" field="charset" usage="optional" />
     54        </mapping>
     55
     56 }}}
     57
    4658A sample of code that marshals a !RegistryObject document is the following. This and similar code you can find in the Object Model's unit test suite.
    4759