org.ota.hotel
Class HotelRatePlan.Offers

java.lang.Object
  extended by org.ota.hotel.HotelRatePlan.Offers
Enclosing class:
HotelRatePlan

public static class HotelRatePlan.Offers
extends java.lang.Object

A collection of individual offers. 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" name="Offers" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="Offer" maxOccurs="99">
         <!-- Reference to inner class Offer -->
       </xs:element>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 


Nested Class Summary
static class HotelRatePlan.Offers.Offer
          An individual offer, which defines the type of offer, the conditions under which it can be applied and the amounts and/or percentages deducted.
 
Constructor Summary
HotelRatePlan.Offers()
           
 
Method Summary
 void addOffer(HotelRatePlan.Offers.Offer item)
          Add a 'Offer' element item.
 void clearOffers()
          Remove all 'Offer' element items.
 HotelRatePlan.Offers.Offer getOffer(int index)
          Get 'Offer' element item by position.
 java.util.List<HotelRatePlan.Offers.Offer> getOffers()
          Get the list of 'Offer' element items.
 void setOffers(java.util.List<HotelRatePlan.Offers.Offer> list)
          Set the list of 'Offer' element items.
 int sizeOffers()
          Get the number of 'Offer' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HotelRatePlan.Offers

public HotelRatePlan.Offers()
Method Detail

getOffers

public java.util.List<HotelRatePlan.Offers.Offer> getOffers()
Get the list of 'Offer' element items.

Returns:
list

setOffers

public void setOffers(java.util.List<HotelRatePlan.Offers.Offer> list)
Set the list of 'Offer' element items.

Parameters:
list -

sizeOffers

public int sizeOffers()
Get the number of 'Offer' element items.

Returns:
count

addOffer

public void addOffer(HotelRatePlan.Offers.Offer item)
Add a 'Offer' element item.

Parameters:
item -

getOffer

public HotelRatePlan.Offers.Offer getOffer(int index)
Get 'Offer' element item by position.

Parameters:
index -
Returns:
item

clearOffers

public void clearOffers()
Remove all 'Offer' element items.