org.ota.hotel
Class InvBlock.RoomTypes.Room.RatePlans

java.lang.Object
  extended by org.ota.hotel.InvBlock.RoomTypes.Room.RatePlans
Enclosing class:
InvBlock.RoomTypes.Room

public static class InvBlock.RoomTypes.Room.RatePlans
extends java.lang.Object

This allows for multiple rate plans for a specific room type. 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 name="RatePlan" maxOccurs="99">
         <!-- Reference to inner class RatePlan -->
       </xs:element>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 


Nested Class Summary
static class InvBlock.RoomTypes.Room.RatePlans.RatePlan
          This is a specific rate plan defined for a specific room type.
 
Constructor Summary
InvBlock.RoomTypes.Room.RatePlans()
           
 
Method Summary
 void addRatePlan(InvBlock.RoomTypes.Room.RatePlans.RatePlan item)
          Add a 'RatePlan' element item.
 void clearRatePlans()
          Remove all 'RatePlan' element items.
 InvBlock.RoomTypes.Room.RatePlans.RatePlan getRatePlan(int index)
          Get 'RatePlan' element item by position.
 java.util.List<InvBlock.RoomTypes.Room.RatePlans.RatePlan> getRatePlans()
          Get the list of 'RatePlan' element items.
 void setRatePlans(java.util.List<InvBlock.RoomTypes.Room.RatePlans.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

InvBlock.RoomTypes.Room.RatePlans

public InvBlock.RoomTypes.Room.RatePlans()
Method Detail

getRatePlans

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

Returns:
list

setRatePlans

public void setRatePlans(java.util.List<InvBlock.RoomTypes.Room.RatePlans.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(InvBlock.RoomTypes.Room.RatePlans.RatePlan item)
Add a 'RatePlan' element item.

Parameters:
item -

getRatePlan

public InvBlock.RoomTypes.Room.RatePlans.RatePlan getRatePlan(int index)
Get 'RatePlan' element item by position.

Parameters:
index -
Returns:
item

clearRatePlans

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