org.ota.hotel
Class HotelRatePlan.Supplements

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

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

A collection of supplements (e.g., meal plans or gala dinners). 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="Supplements" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="Supplement" maxOccurs="unbounded">
         <!-- Reference to inner class Supplement -->
       </xs:element>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 


Nested Class Summary
static class HotelRatePlan.Supplements.Supplement
          Single supplement with conditions of application.
 
Constructor Summary
HotelRatePlan.Supplements()
           
 
Method Summary
 void addSupplement(HotelRatePlan.Supplements.Supplement item)
          Add a 'Supplement' element item.
 void clearSupplements()
          Remove all 'Supplement' element items.
 HotelRatePlan.Supplements.Supplement getSupplement(int index)
          Get 'Supplement' element item by position.
 java.util.List<HotelRatePlan.Supplements.Supplement> getSupplements()
          Get the list of 'Supplement' element items.
 void setSupplements(java.util.List<HotelRatePlan.Supplements.Supplement> list)
          Set the list of 'Supplement' element items.
 int sizeSupplements()
          Get the number of 'Supplement' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HotelRatePlan.Supplements

public HotelRatePlan.Supplements()
Method Detail

getSupplements

public java.util.List<HotelRatePlan.Supplements.Supplement> getSupplements()
Get the list of 'Supplement' element items.

Returns:
list

setSupplements

public void setSupplements(java.util.List<HotelRatePlan.Supplements.Supplement> list)
Set the list of 'Supplement' element items.

Parameters:
list -

sizeSupplements

public int sizeSupplements()
Get the number of 'Supplement' element items.

Returns:
count

addSupplement

public void addSupplement(HotelRatePlan.Supplements.Supplement item)
Add a 'Supplement' element item.

Parameters:
item -

getSupplement

public HotelRatePlan.Supplements.Supplement getSupplement(int index)
Get 'Supplement' element item by position.

Parameters:
index -
Returns:
item

clearSupplements

public void clearSupplements()
Remove all 'Supplement' element items.