File: mybinding1.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 (21 lines) | stat: -rw-r--r-- 850 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
<!-- This adds bindings for core Java classes (requiring the binding code to go
 into a separate class). -->
<binding>
  <mapping name="myelement" class="simple.MyClass1">
    <value name="a" get-method="getA" set-method="setA"/>
    <value name="b" get-method="getB" set-method="setB"/>
    <structure name="dimension" field="dimen" value-style="attribute">
      <value name="width" field="width"/>
      <value name="height" field="height"/>
    </structure>
    <structure name="rectangle" field="rect">
      <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" field="ints">
      <value name="int" type="java.lang.Integer"/>
    </collection>
  </mapping>
</binding>