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

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

Port to xenial

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