org.ota.hotel
Class GuestCount

java.lang.Object
  extended by org.ota.hotel.GuestCount

public class GuestCount
extends java.lang.Object

A collection of GuestCount by age group. Schema fragment(s) for this class:

 <xs:complexType xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="GuestCountType">
   <xs:sequence>
     <xs:element name="GuestCount" maxOccurs="99">
       <!-- Reference to inner class GuestCountInner -->
     </xs:element>
   </xs:sequence>
   <xs:attribute type="xs:boolean" use="optional" name="IsPerRoom"/>
 </xs:complexType>
 


Nested Class Summary
static class GuestCount.GuestCountInner
          A recurring element that identifies the number of guests and ages of the guests.
 
Constructor Summary
GuestCount()
           
 
Method Summary
 void addGuestCount(GuestCount.GuestCountInner item)
          Add a 'GuestCount' element item.
 void clearGuestCounts()
          Remove all 'GuestCount' element items.
 GuestCount.GuestCountInner getGuestCount(int index)
          Get 'GuestCount' element item by position.
 java.util.List<GuestCount.GuestCountInner> getGuestCounts()
          Get the list of 'GuestCount' element items.
 java.lang.Boolean getIsPerRoom()
          Get the 'IsPerRoom' attribute value.
 void setGuestCounts(java.util.List<GuestCount.GuestCountInner> list)
          Set the list of 'GuestCount' element items.
 void setIsPerRoom(java.lang.Boolean isPerRoom)
          Set the 'IsPerRoom' attribute value.
 int sizeGuestCounts()
          Get the number of 'GuestCount' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GuestCount

public GuestCount()
Method Detail

getGuestCounts

public java.util.List<GuestCount.GuestCountInner> getGuestCounts()
Get the list of 'GuestCount' element items.

Returns:
list

setGuestCounts

public void setGuestCounts(java.util.List<GuestCount.GuestCountInner> list)
Set the list of 'GuestCount' element items.

Parameters:
list -

sizeGuestCounts

public int sizeGuestCounts()
Get the number of 'GuestCount' element items.

Returns:
count

addGuestCount

public void addGuestCount(GuestCount.GuestCountInner item)
Add a 'GuestCount' element item.

Parameters:
item -

getGuestCount

public GuestCount.GuestCountInner getGuestCount(int index)
Get 'GuestCount' element item by position.

Parameters:
index -
Returns:
item

clearGuestCounts

public void clearGuestCounts()
Remove all 'GuestCount' element items.


getIsPerRoom

public java.lang.Boolean getIsPerRoom()
Get the 'IsPerRoom' attribute value. IsPerRoom means that the guests defined in the GuestCounts object apply to each room in the NumberOfRooms for the RoomStay. Value of "false" means that the guests defined in the GuestCounts object apply to all rooms combined in the NumberOfRooms for the RoomStay.

Returns:
value

setIsPerRoom

public void setIsPerRoom(java.lang.Boolean isPerRoom)
Set the 'IsPerRoom' attribute value. IsPerRoom means that the guests defined in the GuestCounts object apply to each room in the NumberOfRooms for the RoomStay. Value of "false" means that the guests defined in the GuestCounts object apply to all rooms combined in the NumberOfRooms for the RoomStay.

Parameters:
isPerRoom -