org.ota.hotel
Class RoomStay.RoomRates

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

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

A collection of Room Rates associated with a particular Room Stay. Each Room Rate combination can have multiple rates. Example King room, Rack rate plan, Monday through Thursday, weekday amount, Friday and Saturday, weekend amount.The combination of a given Rate Plan and Room Type. This allows for support for systems where Rate Plans are child of Room Type as well as systems which Room Types are child of 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="RoomRates" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="RoomRate" maxOccurs="unbounded">
         <!-- Reference to inner class RoomRate -->
       </xs:element>
     </xs:sequence>
     <xs:attribute type="xs:boolean" use="optional" name="MoreRatesExistInd"/>
   </xs:complexType>
 </xs:element>
 


Nested Class Summary
static class RoomStay.RoomRates.RoomRate
          Schema fragment(s) for this class:
 
Constructor Summary
RoomStay.RoomRates()
           
 
Method Summary
 void addRoomRate(RoomStay.RoomRates.RoomRate item)
          Add a 'RoomRate' element item.
 void clearRoomRates()
          Remove all 'RoomRate' element items.
 java.lang.Boolean getMoreRatesExistInd()
          Get the 'MoreRatesExistInd' attribute value.
 RoomStay.RoomRates.RoomRate getRoomRate(int index)
          Get 'RoomRate' element item by position.
 java.util.List<RoomStay.RoomRates.RoomRate> getRoomRates()
          Get the list of 'RoomRate' element items.
 void setMoreRatesExistInd(java.lang.Boolean moreRatesExistInd)
          Set the 'MoreRatesExistInd' attribute value.
 void setRoomRates(java.util.List<RoomStay.RoomRates.RoomRate> list)
          Set the list of 'RoomRate' element items.
 int sizeRoomRates()
          Get the number of 'RoomRate' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoomStay.RoomRates

public RoomStay.RoomRates()
Method Detail

getRoomRates

public java.util.List<RoomStay.RoomRates.RoomRate> getRoomRates()
Get the list of 'RoomRate' element items.

Returns:
list

setRoomRates

public void setRoomRates(java.util.List<RoomStay.RoomRates.RoomRate> list)
Set the list of 'RoomRate' element items.

Parameters:
list -

sizeRoomRates

public int sizeRoomRates()
Get the number of 'RoomRate' element items.

Returns:
count

addRoomRate

public void addRoomRate(RoomStay.RoomRates.RoomRate item)
Add a 'RoomRate' element item.

Parameters:
item -

getRoomRate

public RoomStay.RoomRates.RoomRate getRoomRate(int index)
Get 'RoomRate' element item by position.

Parameters:
index -
Returns:
item

clearRoomRates

public void clearRoomRates()
Remove all 'RoomRate' element items.


getMoreRatesExistInd

public java.lang.Boolean getMoreRatesExistInd()
Get the 'MoreRatesExistInd' attribute value. When true, indicates more rates exist. When false, all rate information is provided.

Returns:
value

setMoreRatesExistInd

public void setMoreRatesExistInd(java.lang.Boolean moreRatesExistInd)
Set the 'MoreRatesExistInd' attribute value. When true, indicates more rates exist. When false, all rate information is provided.

Parameters:
moreRatesExistInd -