File: binding3.xml

package info (click to toggle)
libjibx-java 1.0.1-2
  • links: PTS
  • area: contrib
  • in suites: lenny
  • size: 15,748 kB
  • ctags: 10,069
  • sloc: java: 29,151; xml: 7,963; makefile: 14
file content (21 lines) | stat: -rw-r--r-- 1,008 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!-- This is an alternate namespaced example binding for using the hashmap
  custom marshaller/unmarshaller. As in binding2.xml, the custom
  marshaller/unmarshaller is defined directly by the <structure> element that
  references the "customerMap" field of the Directory class. -->
<binding>
  <namespace uri="http://www.sosnoski.com" prefix="dms" default="all"/>
  <mapping name="directory" class="example21.Directory">
    <structure field="customerMap" name="map"
      marshaller="example21.HashMapper" unmarshaller="example21.HashMapper"/>
  </mapping>
  <mapping name="customer" class="example21.Customer" value-style="attribute">
    <structure name="name" field="name">
      <value name="first-name" field="firstName"/>
      <value name="last-name" field="lastName"/>
    </structure>
    <value name="street" field="street" style="element"/>
    <value name="city" field="city" style="element"/>
    <value name="state" field="state"/>
    <value name="zip" field="zip"/>
  </mapping>
</binding>