org.ota.itin
Class TravelSegment.Reservation

java.lang.Object
  extended by org.ota.itin.TravelSegment.Reservation
Enclosing class:
TravelSegment

public static class TravelSegment.Reservation
extends java.lang.Object

Hotel reservation information. Schema fragment(s) for this class:

 <xs:element xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" type="ns:RoomStayLiteType" name="Reservation"/>
 
 <xs:complexType xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="RoomStayLiteType">
   <xs:sequence>
     <xs:element name="RoomTypes" minOccurs="0">
       <!-- Reference to inner class RoomTypes -->
     </xs:element>
     <xs:element name="RatePlans" minOccurs="0">
       <!-- Reference to inner class RatePlans -->
     </xs:element>
     <xs:element name="RoomRates" minOccurs="0">
       <!-- Reference to inner class RoomRates -->
     </xs:element>
     <xs:element type="ns:GuestCountType" name="GuestCounts" minOccurs="0"/>
     <xs:element type="ns:DateTimeSpanType" name="TimeSpan" minOccurs="0"/>
     <xs:element type="ns:GuaranteeType" name="Guarantee" minOccurs="0" maxOccurs="5"/>
     <xs:element type="ns:RequiredPaymentLiteType" name="DepositPayment" minOccurs="0" maxOccurs="5">
       <!-- Reference to inner class DepositPayment -->
     </xs:element>
     <xs:element name="BasicPropertyInfo" minOccurs="0">
       <xs:complexType>
         <xs:attributeGroup ref="ns:HotelReferenceGroup"/>
       </xs:complexType>
     </xs:element>
   </xs:sequence>
 </xs:complexType>
 


Nested Class Summary
static class TravelSegment.Reservation.DepositPayment
          A collection of deposit and/or payments for the Room Stay.
static class TravelSegment.Reservation.RatePlans
          Rate Plan info.
static class TravelSegment.Reservation.RoomRates
          Reservation rate(s).
static class TravelSegment.Reservation.RoomTypes
          Room type for reservation.
 
Constructor Summary
TravelSegment.Reservation()
           
 
Method Summary
 void addDepositPayment(TravelSegment.Reservation.DepositPayment item)
          Add a 'DepositPayment' element item.
 void addGuarantee(Guarantee item)
          Add a 'Guarantee' element item.
 void clearDepositPayments()
          Remove all 'DepositPayment' element items.
 void clearGuarantees()
          Remove all 'Guarantee' element items.
 HotelReferenceGroup getBasicPropertyInfo()
          Get the 'HotelReferenceGroup' attributeGroup value.
 TravelSegment.Reservation.DepositPayment getDepositPayment(int index)
          Get 'DepositPayment' element item by position.
 java.util.List<TravelSegment.Reservation.DepositPayment> getDepositPayments()
          Get the list of 'DepositPayment' element items.
 Guarantee getGuarantee(int index)
          Get 'Guarantee' element item by position.
 java.util.List<Guarantee> getGuarantees()
          Get the list of 'Guarantee' element items.
 GuestCount getGuestCounts()
          Get the 'GuestCounts' element value.
 TravelSegment.Reservation.RatePlans getRatePlans()
          Get the 'RatePlans' element value.
 TravelSegment.Reservation.RoomRates getRoomRates()
          Get the 'RoomRates' element value.
 TravelSegment.Reservation.RoomTypes getRoomTypes()
          Get the 'RoomTypes' element value.
 DateTimeSpan getTimeSpan()
          Get the 'TimeSpan' element value.
 void setBasicPropertyInfo(HotelReferenceGroup basicPropertyInfo)
          Set the 'HotelReferenceGroup' attributeGroup value.
 void setDepositPayments(java.util.List<TravelSegment.Reservation.DepositPayment> list)
          Set the list of 'DepositPayment' element items.
 void setGuarantees(java.util.List<Guarantee> list)
          Set the list of 'Guarantee' element items.
 void setGuestCounts(GuestCount guestCounts)
          Set the 'GuestCounts' element value.
 void setRatePlans(TravelSegment.Reservation.RatePlans ratePlans)
          Set the 'RatePlans' element value.
 void setRoomRates(TravelSegment.Reservation.RoomRates roomRates)
          Set the 'RoomRates' element value.
 void setRoomTypes(TravelSegment.Reservation.RoomTypes roomTypes)
          Set the 'RoomTypes' element value.
 void setTimeSpan(DateTimeSpan timeSpan)
          Set the 'TimeSpan' element value.
 int sizeDepositPayments()
          Get the number of 'DepositPayment' element items.
 int sizeGuarantees()
          Get the number of 'Guarantee' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TravelSegment.Reservation

public TravelSegment.Reservation()
Method Detail

getRoomTypes

public TravelSegment.Reservation.RoomTypes getRoomTypes()
Get the 'RoomTypes' element value. Summary version of the RoomStayType, initially created for the Travel Itinerary Message set.

Returns:
value

setRoomTypes

public void setRoomTypes(TravelSegment.Reservation.RoomTypes roomTypes)
Set the 'RoomTypes' element value. Summary version of the RoomStayType, initially created for the Travel Itinerary Message set.

Parameters:
roomTypes -

getRatePlans

public TravelSegment.Reservation.RatePlans getRatePlans()
Get the 'RatePlans' element value. Summary version of the RoomStayType, initially created for the Travel Itinerary Message set.

Returns:
value

setRatePlans

public void setRatePlans(TravelSegment.Reservation.RatePlans ratePlans)
Set the 'RatePlans' element value. Summary version of the RoomStayType, initially created for the Travel Itinerary Message set.

Parameters:
ratePlans -

getRoomRates

public TravelSegment.Reservation.RoomRates getRoomRates()
Get the 'RoomRates' element value. Summary version of the RoomStayType, initially created for the Travel Itinerary Message set.

Returns:
value

setRoomRates

public void setRoomRates(TravelSegment.Reservation.RoomRates roomRates)
Set the 'RoomRates' element value. Summary version of the RoomStayType, initially created for the Travel Itinerary Message set.

Parameters:
roomRates -

getGuestCounts

public GuestCount getGuestCounts()
Get the 'GuestCounts' element value. Number of guests associated with this reservation.

Returns:
value

setGuestCounts

public void setGuestCounts(GuestCount guestCounts)
Set the 'GuestCounts' element value. Number of guests associated with this reservation.

Parameters:
guestCounts -

getTimeSpan

public DateTimeSpan getTimeSpan()
Get the 'TimeSpan' element value. Date and time of check-in and check-out.

Returns:
value

setTimeSpan

public void setTimeSpan(DateTimeSpan timeSpan)
Set the 'TimeSpan' element value. Date and time of check-in and check-out.

Parameters:
timeSpan -

getGuarantees

public java.util.List<Guarantee> getGuarantees()
Get the list of 'Guarantee' element items. The guarantee information associated to the Room Stay. A maximum of 5 occurances are available for use depending on the context.

Returns:
list

setGuarantees

public void setGuarantees(java.util.List<Guarantee> list)
Set the list of 'Guarantee' element items. The guarantee information associated to the Room Stay. A maximum of 5 occurances are available for use depending on the context.

Parameters:
list -

sizeGuarantees

public int sizeGuarantees()
Get the number of 'Guarantee' element items.

Returns:
count

addGuarantee

public void addGuarantee(Guarantee item)
Add a 'Guarantee' element item.

Parameters:
item -

getGuarantee

public Guarantee getGuarantee(int index)
Get 'Guarantee' element item by position.

Parameters:
index -
Returns:
item

clearGuarantees

public void clearGuarantees()
Remove all 'Guarantee' element items.


getDepositPayments

public java.util.List<TravelSegment.Reservation.DepositPayment> getDepositPayments()
Get the list of 'DepositPayment' element items. Summary version of the RoomStayType, initially created for the Travel Itinerary Message set.

Returns:
list

setDepositPayments

public void setDepositPayments(java.util.List<TravelSegment.Reservation.DepositPayment> list)
Set the list of 'DepositPayment' element items. Summary version of the RoomStayType, initially created for the Travel Itinerary Message set.

Parameters:
list -

sizeDepositPayments

public int sizeDepositPayments()
Get the number of 'DepositPayment' element items.

Returns:
count

addDepositPayment

public void addDepositPayment(TravelSegment.Reservation.DepositPayment item)
Add a 'DepositPayment' element item.

Parameters:
item -

getDepositPayment

public TravelSegment.Reservation.DepositPayment getDepositPayment(int index)
Get 'DepositPayment' element item by position.

Parameters:
index -
Returns:
item

clearDepositPayments

public void clearDepositPayments()
Remove all 'DepositPayment' element items.


getBasicPropertyInfo

public HotelReferenceGroup getBasicPropertyInfo()
Get the 'HotelReferenceGroup' attributeGroup value. Basic hotel property information.

Returns:
value

setBasicPropertyInfo

public void setBasicPropertyInfo(HotelReferenceGroup basicPropertyInfo)
Set the 'HotelReferenceGroup' attributeGroup value. Basic hotel property information.

Parameters:
basicPropertyInfo -