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

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

Port to xenial

File size: 1.4 KB
Line 
1<!-- Same as last version, except using both get and set methods for
2 collection -->
3<binding>
4  <mapping name="myelement" class="simple.MyClass2">
5    <value name="a" get-method="getA" set-method="setA" style="attribute"/>
6    <value name="b" get-method="getB" set-method="setB" style="attribute" usage="optional"/>
7    <value name="c" field="c" style="attribute" usage="optional"/>
8    <value name="d" field="d" style="attribute" usage="optional"/>
9    <value name="e" field="e" style="attribute" usage="optional" type="java.lang.Integer"/>
10    <value name="f" field="f" style="attribute" usage="optional"/>
11    <value name="g" get-method="getG" set-method="setG" type="java.lang.Integer"/>
12    <structure name="dimension" field="dimen" value-style="attribute"
13      usage="optional">
14      <value name="width" field="width"/>
15      <value name="height" field="height"/>
16    </structure>
17    <structure name="rectangle" field="rect" usage="optional">
18      <value name="width" field="width" style="attribute"/>
19      <value name="height" field="height" style="attribute"/>
20      <value name="x" field="x"/>
21      <value name="y" field="y"/>
22    </structure>
23    <collection name="ints" factory="simple.MyClass2.arrayListFactory"
24        get-method="getList" set-method="setList" usage="optional">
25      <value name="int" type="java.lang.Integer"/>
26    </collection>
27  </mapping>
28</binding>
Note: See TracBrowser for help on using the repository browser.