File: binding3a.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 (18 lines) | stat: -rw-r--r-- 775 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!-- Using the ObjectArrayMapper class along with the IdReferenceMapperBase
  class -->
<binding>
  <mapping name="names" class="extras.NameArray">
    <structure field="m_names" name="definitions"
        marshaller="org.jibx.extras.ObjectArrayMapper"
        unmarshaller="org.jibx.extras.ObjectArrayMapper"/>
    <collection name="references" field="m_references" usage="optional">
      <structure name="name" marshaller="extras.NameArray$RefMapper"
          unmarshaller="extras.NameArray$RefMapper"/>
    </collection>
  </mapping>
  <mapping name="name" class="extras.NameArray$Name">
    <value name="id" style="attribute" field="m_id" ident="def"/>
    <value name="first-name" field="m_first"/>
    <value name="last-name" field="m_last"/>
  </mapping>
</binding>