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

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

Port to xenial

File size: 2.3 KB
Line 
1<!-- binding using separate marshaller and unmarshaller classes -->
2<binding track-source="true">
3  <namespace prefix="xsi" uri="http://www.w3.org/2001/XMLSchema-instance"/>
4  <mapping abstract="true" class="simple.Customer5Base">
5    <structure field="name"/>
6    <value name="street1" field="street1"/>
7    <value name="city" field="city"/>
8    <value name="state" field="state"/>
9    <value name="zip" field="zip"/>
10    <value name="phone" field="phone"/>
11  </mapping>
12  <mapping name="customer" class="simple.Customer5" value-style="attribute"
13      extends="simple.Customer5Base">
14    <value name="nil" ns="http://www.w3.org/2001/XMLSchema-instance"
15        constant="false" usage="optional"/>
16    <structure label="customer5-definition">
17      <structure map-as="simple.Customer5Base"/>
18      <value name="version" constant="1.0" usage="optional"/>
19      <value name="subversion" constant="A" style="element" usage="optional"/>
20      <value name="customer-id" field="customerId"/>
21      <value name="repeat-customer" field="repeat" default="false"/>
22      <value name="order-count" field="orderCount" default="0"/>
23      <value name="discount" field="discount" default="1.0"/>
24      <collection usage="optional" field="referrals">
25        <structure map-as="simple.Customer5a" usage="optional"/>
26        <structure map-as="simple.Customer5b" usage="optional"/>
27        <structure map-as="simple.Customer5c"/>
28      </collection>
29    </structure>
30  </mapping>
31  <mapping name="customer5a" class="simple.Customer5a"
32      extends="simple.Customer5Base">
33    <value name="source" field="sourceCode"/>
34    <structure map-as="simple.Customer5Base"/>
35  </mapping>
36  <mapping name="customer5b" class="simple.Customer5b"
37      extends="simple.Customer5Base">
38    <structure field="name" marshaller="simple.NameMarshaller"
39        unmarshaller="simple.NameUnmarshaller"/>
40    <value name="street1" field="street1"/>
41    <value name="city" field="city"/>
42    <value name="state" field="state"/>
43    <value name="zip" field="zip"/>
44    <value name="phone" field="phone"/>
45  </mapping>
46  <mapping name="customer5c" class="simple.Customer5c"
47      extends="simple.Customer5Base">
48    <structure using="customer5-definition"/>
49    <value name="quality" field="qualityCode"/>
50  </mapping>
51  <mapping class="simple.Name" marshaller="simple.NameMarshaller"
52      unmarshaller="simple.NameUnmarshaller"/>
53</binding>
Note: See TracBrowser for help on using the repository browser.