File: binding7.xml

package info (click to toggle)
libjibx1.2-java 1.2.6-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 26,260 kB
  • sloc: java: 75,013; xml: 14,068; makefile: 17
file content (29 lines) | stat: -rw-r--r-- 1,397 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<!-- binding testing collection as mapped object with structure children of
 inner interface type implemented by inner class type, also optional structure
 with name and field -->
<binding>
  <mapping name="customers" class="simple.Customers7">
    <value name="count" get-method="getCustomerCount"
        set-method="setCustomerCount"/>
    <collection add-method="wrappedAddCustomer"
        iter-method="wrappedGetCustomerIterator"
        test-method="wrappedHasCustomer" usage="optional">
      <structure name="customer" type="simple.Customers7$CustomerInterface"
          value-style="attribute" factory="simple.Customers7.createCustomer">
        <structure name="name" get-method="getName" set-method="setName"
            usage="optional">
          <value name="first-name" field="firstName"/>
          <value name="last-name" field="lastName"/>
        </structure>
        <value name="street1" get-method="getStreet1" set-method="setStreet1"
            style="element"/>
        <value name="city" get-method="getCity" set-method="setCity"
            style="element"/>
        <value name="state" get-method="getState" set-method="setState"/>
        <value name="zip" get-method="getZip" set-method="setZip"/>
        <structure name="ignored" usage="optional"/>
        <structure name="skipped" usage="optional"/>
      </structure>
    </collection>
  </mapping>
</binding>