File: mybinding4a.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 (51 lines) | stat: -rw-r--r-- 2,412 bytes parent folder | download | duplicates (10)
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<!-- Different types within an unordered collection. -->

<binding>
  <format type="char" serializer="org.jibx.runtime.Utility.serializeCharString"
    deserializer="org.jibx.runtime.Utility.deserializeCharString"/>
  <format type="char" label="alt-char"
    serializer="org.jibx.runtime.Utility.serializeChar"
    deserializer="org.jibx.runtime.Utility.parseChar"/>
  <mapping name="myelement" class="simple.MyClass4" post-set="postSet">
    <value style="text" field="a" usage="optional"/>
    <value name="b" field="b"/>
    <value style="cdata" field="c" usage="optional"/>
    <structure name="dwrap">
      <value name="d" style="attribute" field="d"/>
    </structure>
    <value name="e" field="e" deserializer="java.lang.Integer.valueOf"
      usage="optional"/>
    <value name="f" field="f" serializer="simple.MyClass4.serializeInteger"/>
    <structure name="gwrap" usage="optional" test-method="testG">
      <value style="cdata" field="g" usage="optional"/>
    </structure>
    <value name="h" field="h" serializer="simple.MyClass4.yesNoSerializer"
      deserializer="simple.MyClass4.yesNoDeserializer" usage="optional"
      default="yes"/>
    <value name="i" field="i" serializer="simple.MyClass4Format.yesNoSerializer"
      deserializer="simple.MyClass4Format.yesNoDeserializer" usage="optional"/>
    <value name="j" test-method="testJ" get-method="getJ" set-method="setJ"
        usage="optional"/>
    <value name="k" field="k" usage="optional"/>
    <value name="l" field="l"/>
    <value name="m" field="m" default="-128"/>
    <value name="n" field="n"/>
    <structure name="o" usage="optional" test-method="testO">
      <value style="attribute" field="o" set-method="setO" name="value"/>
    </structure>
    <value name="p" field="p" usage="optional"/>
    <structure name="wrapper">
      <value field="q" style="text" usage="optional"/>
      <structure name="split"/>
      <value field="r" style="cdata" usage="optional"/>
    </structure>
<!-- This doesn't work at present, but needs to be fixed for 2.0
    <structure name="s" usage="optional">
      <value style="text" field="s" usage="optional"/>
    </structure>  -->
    <collection field="intsAndStrings" usage="optional" ordered="false">
      <value name="int" type="java.lang.Integer" usage="optional"/>
      <value name="string" type="java.lang.String" usage="optional"/>
    </collection>
  </mapping>
</binding>