File: binding2.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 (17 lines) | stat: -rw-r--r-- 703 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<!-- Tests using structures that define optional XML elements using subsets of
 the properties of the current object, using a test method. -->
<binding>
  <mapping name="customer" class="simple.Customer2">
    <structure name="name" usage="optional" test-method="hasName">
      <value name="first-name" field="firstName" usage="optional"/>
      <value name="last-name" field="lastName" usage="optional"/>
    </structure>
    <structure field="address">
      <value name="street1" field="street1"/>
      <value name="city" field="city"/>
      <value name="state" field="state"/>
      <value name="zip" field="zip"/>
    </structure>
    <value name="phone" field="phone"/>
  </mapping>
</binding>