org.ota.hotel
Class HotelReservations

java.lang.Object
  extended by org.ota.hotel.HotelReservations

public class HotelReservations
extends java.lang.Object

A collection of hotel reservations. Schema fragment(s) for this class:

 <xs:complexType xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="HotelReservationsType">
   <xs:sequence>
     <xs:element type="ns:HotelReservationType" name="HotelReservation" maxOccurs="unbounded"/>
     <xs:element type="ns:RoutingHopType" name="RoutingHops" minOccurs="0"/>
     <xs:element type="ns:WrittenConfInstType" name="WrittenConfInst" minOccurs="0"/>
     <xs:element ref="ns:TPA_Extensions" minOccurs="0"/>
   </xs:sequence>
 </xs:complexType>
 
 <xs:element xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" type="ns:TPA_ExtensionsType" name="TPA_Extensions"/>
 


Constructor Summary
HotelReservations()
           
 
Method Summary
 void addHotelReservation(HotelReservation item)
          Add a 'HotelReservation' element item.
 void clearHotelReservations()
          Remove all 'HotelReservation' element items.
 HotelReservation getHotelReservation(int index)
          Get 'HotelReservation' element item by position.
 java.util.List<HotelReservation> getHotelReservations()
          Get the list of 'HotelReservation' element items.
 RoutingHop getRoutingHops()
          Get the 'RoutingHops' element value.
 TPAExtensions getTPAExtensions()
          Get the 'TPA_Extensions' element value.
 WrittenConfInst getWrittenConfInst()
          Get the 'WrittenConfInst' element value.
 void setHotelReservations(java.util.List<HotelReservation> list)
          Set the list of 'HotelReservation' element items.
 void setRoutingHops(RoutingHop routingHops)
          Set the 'RoutingHops' element value.
 void setTPAExtensions(TPAExtensions TPAExtensions)
          Set the 'TPA_Extensions' element value.
 void setWrittenConfInst(WrittenConfInst writtenConfInst)
          Set the 'WrittenConfInst' element value.
 int sizeHotelReservations()
          Get the number of 'HotelReservation' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HotelReservations

public HotelReservations()
Method Detail

getHotelReservations

public java.util.List<HotelReservation> getHotelReservations()
Get the list of 'HotelReservation' element items. Contains a hotel reservation.

Returns:
list

setHotelReservations

public void setHotelReservations(java.util.List<HotelReservation> list)
Set the list of 'HotelReservation' element items. Contains a hotel reservation.

Parameters:
list -

sizeHotelReservations

public int sizeHotelReservations()
Get the number of 'HotelReservation' element items.

Returns:
count

addHotelReservation

public void addHotelReservation(HotelReservation item)
Add a 'HotelReservation' element item.

Parameters:
item -

getHotelReservation

public HotelReservation getHotelReservation(int index)
Get 'HotelReservation' element item by position.

Parameters:
index -
Returns:
item

clearHotelReservations

public void clearHotelReservations()
Remove all 'HotelReservation' element items.


getRoutingHops

public RoutingHop getRoutingHops()
Get the 'RoutingHops' element value. A collection of routing hops.

Returns:
value

setRoutingHops

public void setRoutingHops(RoutingHop routingHops)
Set the 'RoutingHops' element value. A collection of routing hops.

Parameters:
routingHops -

getWrittenConfInst

public WrittenConfInst getWrittenConfInst()
Get the 'WrittenConfInst' element value. To indicate a confirmation is to be sent for this batch of reservations.

Returns:
value

setWrittenConfInst

public void setWrittenConfInst(WrittenConfInst writtenConfInst)
Set the 'WrittenConfInst' element value. To indicate a confirmation is to be sent for this batch of reservations.

Parameters:
writtenConfInst -

getTPAExtensions

public TPAExtensions getTPAExtensions()
Get the 'TPA_Extensions' element value. A placeholder in the schema to allow for additional elements and attributes to be included if required, per Trading Partner Agreement (TPA).

Returns:
value

setTPAExtensions

public void setTPAExtensions(TPAExtensions TPAExtensions)
Set the 'TPA_Extensions' element value. A placeholder in the schema to allow for additional elements and attributes to be included if required, per Trading Partner Agreement (TPA).

Parameters:
TPAExtensions -