source: libjibx-java-1.1/trunk/fuentes/build/test/data/binding0.xml @ 4701

Last change on this file since 4701 was 4701, checked in by Juanma, 3 years ago

Port to xenial

File size: 1.5 KB
Line 
1<!-- This defines a simple and straight-forward binding that's the basis for the
2  other variations in this directory -->
3<binding forwards="false">
4  <mapping name="timetable" class="multiple.TimeTableBean">
5    <collection field="m_carriers" item-type="multiple.CarrierBean"/>
6    <collection field="m_airports" item-type="multiple.AirportBean"/>
7    <collection field="m_routes" item-type="multiple.RouteBean"/>
8  </mapping>
9  <mapping name="carrier" class="multiple.CarrierBean">
10    <value style="attribute" name="ident" field="m_ident" ident="def"/>
11    <value style="attribute" name="rating" field="m_rating"/>
12    <value name="URL" field="m_url"/>
13    <value name="name" field="m_name"/>
14  </mapping>
15  <mapping name="airport" class="multiple.AirportBean">
16    <value style="attribute" name="ident" field="m_ident" ident="def"/>
17    <value name="location" field="m_location"/>
18    <value name="name" field="m_name"/>
19  </mapping>
20  <mapping name="route" value-style="attribute" class="multiple.RouteBean">
21    <value name="from" field="m_from" ident="ref"/>
22    <value name="to" field="m_to" ident="ref"/>
23    <collection field="m_flights" item-type="multiple.FlightBean"/>
24  </mapping>
25  <mapping name="flight" value-style="attribute"
26      class="multiple.FlightBean">
27    <value name="carrier" field="m_carrier" ident="ref"/>
28    <value name="number" field="m_number"/>
29    <value name="depart" get-method="getDepartureTime"
30      set-method="setDepartureTime"/>
31    <value name="arrive" get-method="getArrivalTime"
32      set-method="setArrivalTime"/>
33  </mapping>
34</binding>
Note: See TracBrowser for help on using the repository browser.