org.ota.hotel
Class RoomStay.RatePlans

java.lang.Object
  extended by org.ota.hotel.RoomStay.RatePlans
Enclosing class:
RoomStay

public static class RoomStay.RatePlans
extends java.lang.Object

A collection of Rate Plans associated with a particular Room Stay.The rate plan element is used to contain all the rate information for a single Rate Plan Code (ex RACK) for a given date range. A given Rate Plan may have variable rates, over the effective period of the Rate Plan, this is represented by the child element Rates. 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="RatePlans" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:RatePlanType" name="RatePlan" maxOccurs="unbounded"/>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 


Constructor Summary
RoomStay.RatePlans()
           
 
Method Summary
 void addRatePlan(RatePlan item)
          Add a 'RatePlan' element item.
 void clearRatePlans()
          Remove all 'RatePlan' element items.
 RatePlan getRatePlan(int index)
          Get 'RatePlan' element item by position.
 java.util.List<RatePlan> getRatePlans()
          Get the list of 'RatePlan' element items.
 void setRatePlans(java.util.List<RatePlan> list)
          Set the list of 'RatePlan' element items.
 int sizeRatePlans()
          Get the number of 'RatePlan' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoomStay.RatePlans

public RoomStay.RatePlans()
Method Detail

getRatePlans

public java.util.List<RatePlan> getRatePlans()
Get the list of 'RatePlan' element items.

Returns:
list

setRatePlans

public void setRatePlans(java.util.List<RatePlan> list)
Set the list of 'RatePlan' element items.

Parameters:
list -

sizeRatePlans

public int sizeRatePlans()
Get the number of 'RatePlan' element items.

Returns:
count

addRatePlan

public void addRatePlan(RatePlan item)
Add a 'RatePlan' element item.

Parameters:
item -

getRatePlan

public RatePlan getRatePlan(int index)
Get 'RatePlan' element item by position.

Parameters:
index -
Returns:
item

clearRatePlans

public void clearRatePlans()
Remove all 'RatePlan' element items.