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
|
<!-- Same as last version, except using sorted set with separate field -->
<binding>
<mapping name="myelement" class="simple.MyClass2">
<value name="a" get-method="getA" set-method="setA" style="attribute"/>
<value name="b" get-method="getB" set-method="setB" style="attribute" usage="optional"/>
<value name="c" field="c" style="attribute" usage="optional"/>
<value name="d" field="d" style="attribute" usage="optional"/>
<value name="e" field="e" style="attribute" usage="optional" type="java.lang.Integer"/>
<value name="f" field="f" style="attribute" usage="optional"/>
<value name="g" get-method="getG" set-method="setG" type="java.lang.Integer"/>
<structure name="format" 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="format" 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" factory="simple.MyClass2.sortedSetFactory"
field="orderedStrings" usage="optional">
<value name="int" type="java.lang.String"/>
</collection>
</mapping>
</binding>
|