source: libjibx-java-1.1/trunk/fuentes/build/test/simple/binding9.xml @ 4701

Last change on this file since 4701 was 4701, checked in by Juanma, 3 years ago

Port to xenial

File size: 1.4 KB
Line 
1<!-- Example from tutorial, using multiple abstract named mappings for same
2 class, both optional and required references -->
3<binding>
4  <mapping name="customer" class="simple.Customer9">
5    <structure name="person" value-style="attribute">
6      <value name="cust-num" field="customerNumber"/>
7      <value name="first-name" field="firstName"/>
8      <value style="text" field="lastName"/>
9    </structure>
10    <structure field="shipAddress" map-as="normal-address" usage="optional"/>
11    <structure name="bill-address" field="billAddress"
12        map-as="normal-address" usage="optional"/>
13    <value name="phone" field="phone"/>
14  </mapping>
15  <mapping name="subscriber" class="simple.Subscriber9">
16    <value name="name" field="name"/>
17    <structure name="address" field="mailAddress"
18        map-as="compact-address"/>
19  </mapping>
20  <mapping class="simple.Address9" abstract="true"
21      type-name="normal-address">
22    <value name="street" field="street"/>
23    <value name="city" field="city"/>
24    <value name="state" field="state"/>
25    <value name="zip" style="attribute" field="zip"/>
26  </mapping>
27  <mapping class="simple.Address9" abstract="true"
28       value-style="attribute" type-name="compact-address">
29    <value style="text" field="street"/>
30    <value name="city" field="city"/>
31    <value name="state" field="state"/>
32    <value name="zip" field="zip"/>
33  </mapping>
34</binding>
Note: See TracBrowser for help on using the repository browser.