org.ota.vehicle
Class CustomerPrimaryAdditional

java.lang.Object
  extended by org.ota.vehicle.CustomerPrimaryAdditional

public class CustomerPrimaryAdditional
extends java.lang.Object

Information on the one primary driver and, optionally, several additional drivers. This may be used to provide a frequent renter number. 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="CustomerPrimaryAdditionalType">
   <xs:sequence>
     <xs:element name="Primary">
       <xs:complexType>
         <xs:complexContent>
           <xs:extension base="ns:CustomerType">
             <xs:sequence>
               <xs:element type="ns:UniqueID_Type" name="CustomerID" minOccurs="0"/>
             </xs:sequence>
           </xs:extension>
         </xs:complexContent>
       </xs:complexType>
     </xs:element>
     <xs:element name="Additional" minOccurs="0" maxOccurs="9">
       <!-- Reference to inner class Additional -->
     </xs:element>
   </xs:sequence>
 </xs:complexType>
 


Nested Class Summary
static class CustomerPrimaryAdditional.Additional
          Information on additional driver(s), possibly including frequent renter number.
 
Constructor Summary
CustomerPrimaryAdditional()
           
 
Method Summary
 void addAdditional(CustomerPrimaryAdditional.Additional item)
          Add a 'Additional' element item.
 void clearAdditionals()
          Remove all 'Additional' element items.
 CustomerPrimaryAdditional.Additional getAdditional(int index)
          Get 'Additional' element item by position.
 java.util.List<CustomerPrimaryAdditional.Additional> getAdditionals()
          Get the list of 'Additional' element items.
 Customer getPrimaryCustomer()
          Get the extension value.
 UniqueID getPrimaryCustomerID()
          Get the 'CustomerID' element value.
 void setAdditionals(java.util.List<CustomerPrimaryAdditional.Additional> list)
          Set the list of 'Additional' element items.
 void setPrimaryCustomer(Customer primaryCustomer)
          Set the extension value.
 void setPrimaryCustomerID(UniqueID primaryCustomerID)
          Set the 'CustomerID' element value.
 int sizeAdditionals()
          Get the number of 'Additional' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomerPrimaryAdditional

public CustomerPrimaryAdditional()
Method Detail

getPrimaryCustomer

public Customer getPrimaryCustomer()
Get the extension value.

Returns:
value

setPrimaryCustomer

public void setPrimaryCustomer(Customer primaryCustomer)
Set the extension value.

Parameters:
primaryCustomer -

getPrimaryCustomerID

public UniqueID getPrimaryCustomerID()
Get the 'CustomerID' element value. The identification of the customer for whom a booking is being requested. This is different from the customer's loyalty number.

Returns:
value

setPrimaryCustomerID

public void setPrimaryCustomerID(UniqueID primaryCustomerID)
Set the 'CustomerID' element value. The identification of the customer for whom a booking is being requested. This is different from the customer's loyalty number.

Parameters:
primaryCustomerID -

getAdditionals

public java.util.List<CustomerPrimaryAdditional.Additional> getAdditionals()
Get the list of 'Additional' element items.

Returns:
list

setAdditionals

public void setAdditionals(java.util.List<CustomerPrimaryAdditional.Additional> list)
Set the list of 'Additional' element items.

Parameters:
list -

sizeAdditionals

public int sizeAdditionals()
Get the number of 'Additional' element items.

Returns:
count

addAdditional

public void addAdditional(CustomerPrimaryAdditional.Additional item)
Add a 'Additional' element item.

Parameters:
item -

getAdditional

public CustomerPrimaryAdditional.Additional getAdditional(int index)
Get 'Additional' element item by position.

Parameters:
index -
Returns:
item

clearAdditionals

public void clearAdditionals()
Remove all 'Additional' element items.