File: binding.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 (24 lines) | stat: -rw-r--r-- 1,003 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
22
23
24
<binding>
  <mapping name="order" class="example19.Order"
      factory="example19.Order.orderFactory" pre-get="preget">
    <structure field="customer"/>
    <value name="total" field="total" usage="optional"/>
    <collection field="items" item-type="example19.Item"/>
  </mapping>
  <mapping name="customer" class="example19.Customer">
    <structure name="person" field="person" pre-set="preset">
      <value name="cust-num" style="attribute" field="customerNumber"/>
      <value name="first-name" field="firstName"/>
      <value name="last-name" field="lastName"/>
    </structure>
    <value name="street" field="street"/>
    <value name="city" field="city"/>
    <value name="state" field="state"/>
    <value name="zip" field="zip"/>
    <value name="phone" style="attribute" field="phone"/>
  </mapping>
  <mapping name="item" class="example19.Item" post-set="postset">
    <value name="id" style="attribute" field="itemId"/>
    <value style="text" field="count"/>
  </mapping>
</binding>