org.ota.hotel
Class SellableProducts.SellableProduct.GuestRoom

java.lang.Object
  extended by org.ota.hotel.SellableProducts.SellableProduct.GuestRoom
Enclosing class:
SellableProducts.SellableProduct

public static class SellableProducts.SellableProduct.GuestRoom
extends java.lang.Object

Guest room information if this sellable product is a guest room. 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" type="ns:GuestRoomType" name="GuestRoom"/>
 
 <xs:complexType xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="GuestRoomType">
   <xs:sequence>
     <xs:element name="Quantities" minOccurs="0">
       <!-- Reference to inner class Quantities -->
     </xs:element>
     <xs:element name="Occupancy" minOccurs="0" maxOccurs="5">
       <!-- Reference to inner class Occupancy -->
     </xs:element>
     <xs:element name="Room" minOccurs="0">
       <xs:complexType>
         <xs:attributeGroup ref="ns:RoomGroup"/>
       </xs:complexType>
     </xs:element>
     <xs:element name="Amenities" minOccurs="0">
       <!-- Reference to inner class Amenities -->
     </xs:element>
     <xs:element name="RoomLevelFees" minOccurs="0">
       <!-- Reference to inner class RoomLevelFees -->
     </xs:element>
     <xs:element type="ns:AdditionalGuestAmountType" name="AdditionalGuestAmount" minOccurs="0" maxOccurs="5"/>
     <xs:element type="ns:ParagraphType" name="Description" minOccurs="0"/>
   </xs:sequence>
 </xs:complexType>
 


Nested Class Summary
static class SellableProducts.SellableProduct.GuestRoom.Amenities
          Collection of room level amenities.
static class SellableProducts.SellableProduct.GuestRoom.Occupancy
          Provides parameters of occupancy limits.
static class SellableProducts.SellableProduct.GuestRoom.Quantities
          Max rollaways, number of beds Schema fragment(s) for this class:
static class SellableProducts.SellableProduct.GuestRoom.RoomLevelFees
          Collection of fees charged at the room level.
 
Constructor Summary
SellableProducts.SellableProduct.GuestRoom()
           
 
Method Summary
 void addAdditionalGuestAmount(AdditionalGuestAmount item)
          Add a 'AdditionalGuestAmount' element item.
 void addOccupancy(SellableProducts.SellableProduct.GuestRoom.Occupancy item)
          Add a 'Occupancy' element item.
 void clearAdditionalGuestAmounts()
          Remove all 'AdditionalGuestAmount' element items.
 void clearOccupancies()
          Remove all 'Occupancy' element items.
 AdditionalGuestAmount getAdditionalGuestAmount(int index)
          Get 'AdditionalGuestAmount' element item by position.
 java.util.List<AdditionalGuestAmount> getAdditionalGuestAmounts()
          Get the list of 'AdditionalGuestAmount' element items.
 SellableProducts.SellableProduct.GuestRoom.Amenities getAmenities()
          Get the 'Amenities' element value.
 Paragraph getDescription()
          Get the 'Description' element value.
 java.util.List<SellableProducts.SellableProduct.GuestRoom.Occupancy> getOccupancies()
          Get the list of 'Occupancy' element items.
 SellableProducts.SellableProduct.GuestRoom.Occupancy getOccupancy(int index)
          Get 'Occupancy' element item by position.
 SellableProducts.SellableProduct.GuestRoom.Quantities getQuantities()
          Get the 'Quantities' element value.
 RoomGroup getRoom()
          Get the 'RoomGroup' attributeGroup value.
 SellableProducts.SellableProduct.GuestRoom.RoomLevelFees getRoomLevelFees()
          Get the 'RoomLevelFees' element value.
 void setAdditionalGuestAmounts(java.util.List<AdditionalGuestAmount> list)
          Set the list of 'AdditionalGuestAmount' element items.
 void setAmenities(SellableProducts.SellableProduct.GuestRoom.Amenities amenities)
          Set the 'Amenities' element value.
 void setDescription(Paragraph description)
          Set the 'Description' element value.
 void setOccupancies(java.util.List<SellableProducts.SellableProduct.GuestRoom.Occupancy> list)
          Set the list of 'Occupancy' element items.
 void setQuantities(SellableProducts.SellableProduct.GuestRoom.Quantities quantities)
          Set the 'Quantities' element value.
 void setRoom(RoomGroup room)
          Set the 'RoomGroup' attributeGroup value.
 void setRoomLevelFees(SellableProducts.SellableProduct.GuestRoom.RoomLevelFees roomLevelFees)
          Set the 'RoomLevelFees' element value.
 int sizeAdditionalGuestAmounts()
          Get the number of 'AdditionalGuestAmount' element items.
 int sizeOccupancies()
          Get the number of 'Occupancy' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SellableProducts.SellableProduct.GuestRoom

public SellableProducts.SellableProduct.GuestRoom()
Method Detail

getQuantities

public SellableProducts.SellableProduct.GuestRoom.Quantities getQuantities()
Get the 'Quantities' element value. GuestRoomType is used to contain all the information on a guest room

Returns:
value

setQuantities

public void setQuantities(SellableProducts.SellableProduct.GuestRoom.Quantities quantities)
Set the 'Quantities' element value. GuestRoomType is used to contain all the information on a guest room

Parameters:
quantities -

getOccupancies

public java.util.List<SellableProducts.SellableProduct.GuestRoom.Occupancy> getOccupancies()
Get the list of 'Occupancy' element items. GuestRoomType is used to contain all the information on a guest room

Returns:
list

setOccupancies

public void setOccupancies(java.util.List<SellableProducts.SellableProduct.GuestRoom.Occupancy> list)
Set the list of 'Occupancy' element items. GuestRoomType is used to contain all the information on a guest room

Parameters:
list -

sizeOccupancies

public int sizeOccupancies()
Get the number of 'Occupancy' element items.

Returns:
count

addOccupancy

public void addOccupancy(SellableProducts.SellableProduct.GuestRoom.Occupancy item)
Add a 'Occupancy' element item.

Parameters:
item -

getOccupancy

public SellableProducts.SellableProduct.GuestRoom.Occupancy getOccupancy(int index)
Get 'Occupancy' element item by position.

Parameters:
index -
Returns:
item

clearOccupancies

public void clearOccupancies()
Remove all 'Occupancy' element items.


getRoom

public RoomGroup getRoom()
Get the 'RoomGroup' attributeGroup value. Attributes to describe the room from room category to location to view to bed type.

Returns:
value

setRoom

public void setRoom(RoomGroup room)
Set the 'RoomGroup' attributeGroup value. Attributes to describe the room from room category to location to view to bed type.

Parameters:
room -

getAmenities

public SellableProducts.SellableProduct.GuestRoom.Amenities getAmenities()
Get the 'Amenities' element value. GuestRoomType is used to contain all the information on a guest room

Returns:
value

setAmenities

public void setAmenities(SellableProducts.SellableProduct.GuestRoom.Amenities amenities)
Set the 'Amenities' element value. GuestRoomType is used to contain all the information on a guest room

Parameters:
amenities -

getRoomLevelFees

public SellableProducts.SellableProduct.GuestRoom.RoomLevelFees getRoomLevelFees()
Get the 'RoomLevelFees' element value. GuestRoomType is used to contain all the information on a guest room

Returns:
value

setRoomLevelFees

public void setRoomLevelFees(SellableProducts.SellableProduct.GuestRoom.RoomLevelFees roomLevelFees)
Set the 'RoomLevelFees' element value. GuestRoomType is used to contain all the information on a guest room

Parameters:
roomLevelFees -

getAdditionalGuestAmounts

public java.util.List<AdditionalGuestAmount> getAdditionalGuestAmounts()
Get the list of 'AdditionalGuestAmount' element items. Additional guest amounts which are attached to room, not rate.

Returns:
list

setAdditionalGuestAmounts

public void setAdditionalGuestAmounts(java.util.List<AdditionalGuestAmount> list)
Set the list of 'AdditionalGuestAmount' element items. Additional guest amounts which are attached to room, not rate.

Parameters:
list -

sizeAdditionalGuestAmounts

public int sizeAdditionalGuestAmounts()
Get the number of 'AdditionalGuestAmount' element items.

Returns:
count

addAdditionalGuestAmount

public void addAdditionalGuestAmount(AdditionalGuestAmount item)
Add a 'AdditionalGuestAmount' element item.

Parameters:
item -

getAdditionalGuestAmount

public AdditionalGuestAmount getAdditionalGuestAmount(int index)
Get 'AdditionalGuestAmount' element item by position.

Parameters:
index -
Returns:
item

clearAdditionalGuestAmounts

public void clearAdditionalGuestAmounts()
Remove all 'AdditionalGuestAmount' element items.


getDescription

public Paragraph getDescription()
Get the 'Description' element value. Description of the Room.

Returns:
value

setDescription

public void setDescription(Paragraph description)
Set the 'Description' element value. Description of the Room.

Parameters:
description -