org.ota.hotel
Class RoomStay.RoomTypes

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

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

A collection of Room Types associated with a particular Room Stay.The RoomType element is used to contain all the room type information for a single RateType Code (ex A1K) for a given date range. 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="RoomTypes" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:RoomTypeType" name="RoomType" maxOccurs="unbounded"/>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 


Constructor Summary
RoomStay.RoomTypes()
           
 
Method Summary
 void addRoom(RoomType item)
          Add a 'RoomType' element item.
 void clearRooms()
          Remove all 'RoomType' element items.
 RoomType getRoom(int index)
          Get 'RoomType' element item by position.
 java.util.List<RoomType> getRooms()
          Get the list of 'RoomType' element items.
 void setRooms(java.util.List<RoomType> list)
          Set the list of 'RoomType' element items.
 int sizeRooms()
          Get the number of 'RoomType' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoomStay.RoomTypes

public RoomStay.RoomTypes()
Method Detail

getRooms

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

Returns:
list

setRooms

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

Parameters:
list -

sizeRooms

public int sizeRooms()
Get the number of 'RoomType' element items.

Returns:
count

addRoom

public void addRoom(RoomType item)
Add a 'RoomType' element item.

Parameters:
item -

getRoom

public RoomType getRoom(int index)
Get 'RoomType' element item by position.

Parameters:
index -
Returns:
item

clearRooms

public void clearRooms()
Remove all 'RoomType' element items.