File: binding5a.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 (53 lines) | stat: -rw-r--r-- 2,404 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<!-- binding using separate marshaller and unmarshaller classes -->
<binding track-source="true">
  <namespace prefix="xsi" uri="http://www.w3.org/2001/XMLSchema-instance"/>
  <mapping abstract="true" class="simple.Customer5Base">
    <structure field="name"/>
    <value name="street1" field="street1"/>
    <value name="city" field="city"/>
    <value name="state" field="state"/>
    <value name="zip" field="zip"/>
    <value name="phone" field="phone"/>
  </mapping>
  <mapping name="customer" class="simple.Customer5" value-style="attribute"
      extends="simple.Customer5Base">
    <value name="nil" ns="http://www.w3.org/2001/XMLSchema-instance"
        constant="false" usage="optional"/>
    <structure label="customer5-definition">
      <structure map-as="simple.Customer5Base"/>
      <value name="version" constant="1.0" usage="optional"/>
      <value name="subversion" constant="A" style="element" usage="optional"/>
      <value name="customer-id" field="customerId"/>
      <value name="repeat-customer" field="repeat" default="false"/>
      <value name="order-count" field="orderCount" default="0"/>
      <value name="discount" field="discount" default="1.0"/>
      <collection usage="optional" field="referrals">
        <structure map-as="simple.Customer5a" usage="optional"/>
        <structure map-as="simple.Customer5b" usage="optional"/>
        <structure map-as="simple.Customer5c"/>
      </collection>
    </structure>
  </mapping>
  <mapping name="customer5a" class="simple.Customer5a"
      extends="simple.Customer5Base">
    <value name="source" field="sourceCode"/>
    <structure map-as="simple.Customer5Base"/>
  </mapping>
  <mapping name="customer5b" class="simple.Customer5b"
      extends="simple.Customer5Base">
    <structure field="name" marshaller="simple.NameMarshaller"
        unmarshaller="simple.NameUnmarshaller"/>
    <value name="street1" field="street1"/>
    <value name="city" field="city"/>
    <value name="state" field="state"/>
    <value name="zip" field="zip"/>
    <value name="phone" field="phone"/>
  </mapping>
  <mapping name="customer5c" class="simple.Customer5c"
      extends="simple.Customer5Base">
    <structure using="customer5-definition"/>
    <value name="quality" field="qualityCode"/>
  </mapping>
  <mapping class="simple.Name" marshaller="simple.NameMarshaller"
      unmarshaller="simple.NameUnmarshaller"/>
</binding>