File: mybinding4c.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 (53 lines) | stat: -rw-r--r-- 2,530 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<!-- Mixed elements and text values in a 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"/>
  <format type="java.lang.Integer" serializer="simple.MyClass4.serializeNumber"
      deserializer="simple.MyClass4.deserializeNumber"/>
  <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" usage="optional"/>
    <value name="f" field="f"/>
    <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">
      <structure name="int" type="simple.MyClass4$IntWrapper" usage="optional">
        <value style="text" field="ivalue"/>
      </structure>
      <value style="text" type="java.lang.String" usage="optional"/>
    </collection>
  </mapping>
</binding>