File: mybinding5a.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 (27 lines) | stat: -rw-r--r-- 1,048 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
<!-- Test using abstract mappings with type-names inside collections -->
<binding value-style="attribute" track-source="true">
  <mapping name="top" class="simple.MyClass5" post-set="unmarshalDone">
    <collection field="childs1">
      <structure name="b" map-as="b"/>
    </collection>
    <collection field="childs2">
      <structure name="d" map-as="d"/>
    </collection>
    <collection field="childs3">
      <structure name="c" map-as="c"/>
    </collection>
  </mapping>
  <mapping class="simple.MyClass5a" abstract="true" type-name="b">
    <value name="value" field="value"/>
  </mapping>
  <mapping class="simple.MyClass5a" abstract="true" type-name="c">
    <value name="value" field="value"/>
  </mapping>
  <mapping class="simple.MyClass5d" abstract="true" type-name="d"
    factory="simple.MyClass5.dFactory" pre-set="preset" post-set="postset"
    pre-get="preget">
    <value name="value" field="altvalue"/>
    <value name="text1" field="text1"/>
    <value name="text2" style="element" field="text2"/>
  </mapping>
</binding>