org.ota.itin
Class TravelSegment.Reservation.RoomTypes

java.lang.Object
  extended by org.ota.itin.TravelSegment.Reservation.RoomTypes
Enclosing class:
TravelSegment.Reservation

public static class TravelSegment.Reservation.RoomTypes
extends java.lang.Object

Room type for reservation. 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="RoomTypeLiteType" name="RoomType" maxOccurs="9">
         <!-- Reference to inner class Room -->
       </xs:element>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 


Nested Class Summary
static class TravelSegment.Reservation.RoomTypes.Room
          Schema fragment(s) for this class:
 
Constructor Summary
TravelSegment.Reservation.RoomTypes()
           
 
Method Summary
 void addRoom(TravelSegment.Reservation.RoomTypes.Room item)
          Add a 'RoomType' element item.
 void clearRooms()
          Remove all 'RoomType' element items.
 TravelSegment.Reservation.RoomTypes.Room getRoom(int index)
          Get 'RoomType' element item by position.
 java.util.List<TravelSegment.Reservation.RoomTypes.Room> getRooms()
          Get the list of 'RoomType' element items.
 void setRooms(java.util.List<TravelSegment.Reservation.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

TravelSegment.Reservation.RoomTypes

public TravelSegment.Reservation.RoomTypes()
Method Detail

getRooms

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

Returns:
list

setRooms

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

Parameters:
item -

getRoom

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

Parameters:
index -
Returns:
item

clearRooms

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