org.ota.hotel
Class HotelDescriptiveContent.FacilityInfo.GuestRooms

java.lang.Object
  extended by org.ota.hotel.HotelDescriptiveContent.FacilityInfo.GuestRooms
Enclosing class:
HotelDescriptiveContent.FacilityInfo

public static class HotelDescriptiveContent.FacilityInfo.GuestRooms
extends java.lang.Object

Collection of guest room types that are comprised within the hotel. 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="GuestRooms" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="GuestRoom" minOccurs="0" maxOccurs="unbounded">
         <!-- Reference to inner class GuestRoom -->
       </xs:element>
     </xs:sequence>
     <xs:attribute type="xs:int" use="optional" name="MaxOccupancy"/>
   </xs:complexType>
 </xs:element>
 


Nested Class Summary
static class HotelDescriptiveContent.FacilityInfo.GuestRooms.GuestRoom
          The accommodation occupied by a guest.
 
Constructor Summary
HotelDescriptiveContent.FacilityInfo.GuestRooms()
           
 
Method Summary
 void addGuestRoom(HotelDescriptiveContent.FacilityInfo.GuestRooms.GuestRoom item)
          Add a 'GuestRoom' element item.
 void clearGuestRooms()
          Remove all 'GuestRoom' element items.
 HotelDescriptiveContent.FacilityInfo.GuestRooms.GuestRoom getGuestRoom(int index)
          Get 'GuestRoom' element item by position.
 java.util.List<HotelDescriptiveContent.FacilityInfo.GuestRooms.GuestRoom> getGuestRooms()
          Get the list of 'GuestRoom' element items.
 java.lang.Integer getMaxOccupancy()
          Get the 'MaxOccupancy' attribute value.
 void setGuestRooms(java.util.List<HotelDescriptiveContent.FacilityInfo.GuestRooms.GuestRoom> list)
          Set the list of 'GuestRoom' element items.
 void setMaxOccupancy(java.lang.Integer maxOccupancy)
          Set the 'MaxOccupancy' attribute value.
 int sizeGuestRooms()
          Get the number of 'GuestRoom' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HotelDescriptiveContent.FacilityInfo.GuestRooms

public HotelDescriptiveContent.FacilityInfo.GuestRooms()
Method Detail

getGuestRooms

public java.util.List<HotelDescriptiveContent.FacilityInfo.GuestRooms.GuestRoom> getGuestRooms()
Get the list of 'GuestRoom' element items.

Returns:
list

setGuestRooms

public void setGuestRooms(java.util.List<HotelDescriptiveContent.FacilityInfo.GuestRooms.GuestRoom> list)
Set the list of 'GuestRoom' element items.

Parameters:
list -

sizeGuestRooms

public int sizeGuestRooms()
Get the number of 'GuestRoom' element items.

Returns:
count

addGuestRoom

public void addGuestRoom(HotelDescriptiveContent.FacilityInfo.GuestRooms.GuestRoom item)
Add a 'GuestRoom' element item.

Parameters:
item -

getGuestRoom

public HotelDescriptiveContent.FacilityInfo.GuestRooms.GuestRoom getGuestRoom(int index)
Get 'GuestRoom' element item by position.

Parameters:
index -
Returns:
item

clearGuestRooms

public void clearGuestRooms()
Remove all 'GuestRoom' element items.


getMaxOccupancy

public java.lang.Integer getMaxOccupancy()
Get the 'MaxOccupancy' attribute value. Maximum number of guests the hotel can accommodate at one time.

Returns:
value

setMaxOccupancy

public void setMaxOccupancy(java.lang.Integer maxOccupancy)
Set the 'MaxOccupancy' attribute value. Maximum number of guests the hotel can accommodate at one time.

Parameters:
maxOccupancy -