org.ota.cruise
Class SailAvailRQ.GuestCounts

java.lang.Object
  extended by org.ota.cruise.SailAvailRQ.GuestCounts
Enclosing class:
SailAvailRQ

public static class SailAvailRQ.GuestCounts
extends java.lang.Object

Specifies guest quantity and guest types. 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="GuestCounts" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="GuestCount" maxOccurs="9">
         <xs:complexType>
           <xs:attributeGroup ref="ns:TravelerCountGroup"/>
         </xs:complexType>
       </xs:element>
     </xs:sequence>
     <xs:attribute type="xs:boolean" use="optional" name="GroupIndicator"/>
   </xs:complexType>
 </xs:element>
 


Constructor Summary
SailAvailRQ.GuestCounts()
           
 
Method Summary
 void addGuestCount(TravelerCountGroup item)
          Add a 'GuestCount' element item.
 void clearGuestCounts()
          Remove all 'GuestCount' element items.
 java.lang.Boolean getGroupIndicator()
          Get the 'GroupIndicator' attribute value.
 TravelerCountGroup getGuestCount(int index)
          Get 'GuestCount' element item by position.
 java.util.List<TravelerCountGroup> getGuestCounts()
          Get the list of 'GuestCount' element items.
 void setGroupIndicator(java.lang.Boolean groupIndicator)
          Set the 'GroupIndicator' attribute value.
 void setGuestCounts(java.util.List<TravelerCountGroup> list)
          Set the list of 'GuestCount' element items.
 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

SailAvailRQ.GuestCounts

public SailAvailRQ.GuestCounts()
Method Detail

getGuestCounts

public java.util.List<TravelerCountGroup> getGuestCounts()
Get the list of 'GuestCount' element items. Categorization of all guests in the request. The sum of the Quantity attribute will provide you with the total number of guests.

Returns:
list

setGuestCounts

public void setGuestCounts(java.util.List<TravelerCountGroup> list)
Set the list of 'GuestCount' element items. Categorization of all guests in the request. The sum of the Quantity attribute will provide you with the total number of guests.

Parameters:
list -

sizeGuestCounts

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

Returns:
count

addGuestCount

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

Parameters:
item -

getGuestCount

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

Parameters:
index -
Returns:
item

clearGuestCounts

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


getGroupIndicator

public java.lang.Boolean getGroupIndicator()
Get the 'GroupIndicator' attribute value. When true, these counts are for a group.

Returns:
value

setGroupIndicator

public void setGroupIndicator(java.lang.Boolean groupIndicator)
Set the 'GroupIndicator' attribute value. When true, these counts are for a group.

Parameters:
groupIndicator -