org.ota.hotel
Class InvBlock.RoomTypes

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

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

This allows for multiple room types to be defined within an inventory block. Schema fragment(s) for this class:

 <xs:element xmlns="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="InvBlockRoomType" name="RoomType" maxOccurs="99">
         <!-- Reference to inner class Room -->
       </xs:element>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 


Nested Class Summary
static class InvBlock.RoomTypes.Room
          This is a specific room type defined within an inventory block.
 
Constructor Summary
InvBlock.RoomTypes()
           
 
Method Summary
 void addRoom(InvBlock.RoomTypes.Room item)
          Add a 'RoomType' element item.
 void clearRooms()
          Remove all 'RoomType' element items.
 InvBlock.RoomTypes.Room getRoom(int index)
          Get 'RoomType' element item by position.
 java.util.List<InvBlock.RoomTypes.Room> getRooms()
          Get the list of 'RoomType' element items.
 void setRooms(java.util.List<InvBlock.RoomTypes.Room> 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

InvBlock.RoomTypes

public InvBlock.RoomTypes()
Method Detail

getRooms

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

Returns:
list

setRooms

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

Parameters:
item -

getRoom

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

Parameters:
index -
Returns:
item

clearRooms

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