org.ota.pkg
Class CustomerCounts

java.lang.Object
  extended by org.ota.pkg.CustomerCounts

public class CustomerCounts
extends java.lang.Object

CustomerCounts- Categorization of all Customers in a reservation or request. The total number of Customers will equal the sum of the Count attribute of all CustomerCount objects in this collection and assumes that the AgeQualifyingCode will be used to determine how each Customer should be billed. Each booking segment has its own CustomerCount attribute to help determine billing, headcount, etc. The CustomerCount collection cannot be modified using a delta. It must be resent in its entirety if modified. 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="CustomerCountsType">
   <xs:sequence>
     <xs:element name="CustomerCount" maxOccurs="99">
       <!-- Reference to inner class CustomerCount -->
     </xs:element>
   </xs:sequence>
 </xs:complexType>
 


Nested Class Summary
static class CustomerCounts.CustomerCount
          The quantity and definition of one customer type.
 
Constructor Summary
CustomerCounts()
           
 
Method Summary
 void addCustomerCount(CustomerCounts.CustomerCount item)
          Add a 'CustomerCount' element item.
 void clearCustomerCounts()
          Remove all 'CustomerCount' element items.
 CustomerCounts.CustomerCount getCustomerCount(int index)
          Get 'CustomerCount' element item by position.
 java.util.List<CustomerCounts.CustomerCount> getCustomerCounts()
          Get the list of 'CustomerCount' element items.
 void setCustomerCounts(java.util.List<CustomerCounts.CustomerCount> list)
          Set the list of 'CustomerCount' element items.
 int sizeCustomerCounts()
          Get the number of 'CustomerCount' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomerCounts

public CustomerCounts()
Method Detail

getCustomerCounts

public java.util.List<CustomerCounts.CustomerCount> getCustomerCounts()
Get the list of 'CustomerCount' element items.

Returns:
list

setCustomerCounts

public void setCustomerCounts(java.util.List<CustomerCounts.CustomerCount> list)
Set the list of 'CustomerCount' element items.

Parameters:
list -

sizeCustomerCounts

public int sizeCustomerCounts()
Get the number of 'CustomerCount' element items.

Returns:
count

addCustomerCount

public void addCustomerCount(CustomerCounts.CustomerCount item)
Add a 'CustomerCount' element item.

Parameters:
item -

getCustomerCount

public CustomerCounts.CustomerCount getCustomerCount(int index)
Get 'CustomerCount' element item by position.

Parameters:
index -
Returns:
item

clearCustomerCounts

public void clearCustomerCounts()
Remove all 'CustomerCount' element items.