org.ota.hotel
Class RatePlanNotifRQ.Offers

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

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

A collection of offers that apply to all of the rate plans. 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 type="ns:OfferType" name="Offer" maxOccurs="unbounded"/>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 


Constructor Summary
RatePlanNotifRQ.Offers()
           
 
Method Summary
 void addOffer(Offer item)
          Add a 'Offer' element item.
 void clearOffers()
          Remove all 'Offer' element items.
 Offer getOffer(int index)
          Get 'Offer' element item by position.
 java.util.List<Offer> getOffers()
          Get the list of 'Offer' element items.
 void setOffers(java.util.List<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

RatePlanNotifRQ.Offers

public RatePlanNotifRQ.Offers()
Method Detail

getOffers

public java.util.List<Offer> getOffers()
Get the list of 'Offer' element items. An offer that applies to all of the rate plans. It defines the type of offer, the conditions under which it can be applied and the amounts and/or percentages deducted.

Returns:
list

setOffers

public void setOffers(java.util.List<Offer> list)
Set the list of 'Offer' element items. An offer that applies to all of the rate plans. It defines the type of offer, the conditions under which it can be applied and the amounts and/or percentages deducted.

Parameters:
list -

sizeOffers

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

Returns:
count

addOffer

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

Parameters:
item -

getOffer

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

Parameters:
index -
Returns:
item

clearOffers

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