File: mybinding3d.xml

package info (click to toggle)
libjibx-java 1.0.1-2
  • links: PTS
  • area: contrib
  • in suites: lenny
  • size: 15,748 kB
  • ctags: 10,069
  • sloc: java: 29,151; xml: 7,963; makefile: 14
file content (27 lines) | stat: -rw-r--r-- 1,166 bytes parent folder | download
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
<!-- 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="dimension" field="dimen" value-style="attribute">
      <value name="width" field="width"/>
      <value name="height" field="height"/>
    </structure>
    <structure name="rectangle" field="rect" usage="optional">
      <value name="width" field="width" style="attribute"/>
      <value name="height" field="height" style="attribute"/>
      <value name="x" field="x"/>
      <value name="y" field="y"/>
    </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>