File: mybinding3d.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 (37 lines) | stat: -rw-r--r-- 1,940 bytes parent folder | download | duplicates (6)
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
<!-- This checks using choice="true" to allow only one child component. -->
<binding>
  <mapping name="myelement" class="simple.MyClass3">
    <structure ordered="false" choice="true">
      <value name="a" field="a" usage="optional"/>
      <value name="b" field="b" usage="optional"/>
      <value name="c" field="c" usage="optional"/>
      <value name="d" field="d" usage="optional"/>
    </structure>
    <value name="e" field="e" usage="optional" format="char.string"/>
    <structure name="format1" field="format1" value-style="attribute" usage="optional">
      <value name="mini" usage="optional" get-method="getMinimumIntegerDigits"
          set-method="setMinimumIntegerDigits"/>
      <value name="maxi" usage="optional" get-method="getMaximumIntegerDigits"
          set-method="setMaximumIntegerDigits"/>
      <value name="minf" usage="optional" get-method="getMinimumFractionDigits"
          set-method="setMinimumFractionDigits"/>
      <value name="maxf" usage="optional" get-method="getMaximumFractionDigits"
          set-method="setMaximumFractionDigits"/>
    </structure>
    <structure name="format2" field="format2" usage="optional">
      <value name="mini" usage="optional" get-method="getMinimumIntegerDigits"
          set-method="setMinimumIntegerDigits"/>
      <value name="maxi" usage="optional" get-method="getMaximumIntegerDigits"
          set-method="setMaximumIntegerDigits"/>
      <value name="minf" usage="optional" get-method="getMinimumFractionDigits"
          set-method="setMinimumFractionDigits"/>
      <value name="maxf" usage="optional" get-method="getMaximumFractionDigits"
          set-method="setMaximumFractionDigits"/>
    </structure>
    <collection name="ints" item-type="java.lang.Integer" add-method="addInt"
        size-method="sizeInts" load-method="getInt" usage="optional"
        test-method="hasInts">
      <value name="int"/>
    </collection>
  </mapping>
</binding>