org.ota.vehicle
Class VehicleReservationRQCore

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

public class VehicleReservationRQCore
extends java.lang.Object

The VehicleReservationRQCoreType complex type identifies the core, or common, information that is typically included when requesting the reservation of avehicle. 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="VehicleReservationRQCoreType">
   <xs:sequence>
     <xs:element type="ns:UniqueID_Type" name="UniqueID" minOccurs="0" maxOccurs="3"/>
     <xs:element type="ns:VehicleRentalCoreType" name="VehRentalCore"/>
     <xs:element type="ns:CustomerPrimaryAdditionalType" name="Customer"/>
     <xs:element type="ns:CompanyNamePrefType" name="VendorPref" minOccurs="0"/>
     <xs:element type="ns:VehiclePrefType" name="VehPref" minOccurs="0"/>
     <xs:element name="DriverType" minOccurs="0" maxOccurs="3">
       <xs:complexType>
         <xs:attributeGroup ref="ns:TravelerCountGroup"/>
       </xs:complexType>
     </xs:element>
     <xs:element type="ns:RateQualifierType" name="RateQualifier" minOccurs="0"/>
     <xs:element name="Fees" minOccurs="0">
       <!-- Reference to inner class Fees -->
     </xs:element>
     <xs:element name="VehicleCharges" minOccurs="0">
       <!-- Reference to inner class VehicleCharges -->
     </xs:element>
     <xs:element name="SpecialEquipPrefs" minOccurs="0">
       <!-- Reference to inner class SpecialEquipPrefs -->
     </xs:element>
     <xs:element name="RateDistance" minOccurs="0" maxOccurs="5">
       <xs:complexType>
         <xs:attributeGroup ref="ns:VehicleRateDistanceGroup"/>
       </xs:complexType>
     </xs:element>
     <xs:element name="TotalCharge" minOccurs="0">
       <xs:complexType>
         <xs:attributeGroup ref="ns:VehicleTotalChargeGroup"/>
       </xs:complexType>
     </xs:element>
     <xs:element name="Queue" minOccurs="0">
       <xs:complexType>
         <xs:attributeGroup ref="ns:QueueGroup"/>
       </xs:complexType>
     </xs:element>
     <xs:element ref="ns:TPA_Extensions" minOccurs="0"/>
   </xs:sequence>
   <xs:attribute type="xs:string" use="optional" name="Status"/>
 </xs:complexType>
 
 <xs:element xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" type="ns:TPA_ExtensionsType" name="TPA_Extensions"/>
 


Nested Class Summary
static class VehicleReservationRQCore.Fees
          A collection of fees associated with this vehicle reservation.
static class VehicleReservationRQCore.SpecialEquipPrefs
          Indicates the preferences for one or more specific items of additional equipment, such as ski racks, child seats, etc.
static class VehicleReservationRQCore.VehicleCharges
          Information on the charges associated with this vehicle.
 
Constructor Summary
VehicleReservationRQCore()
           
 
Method Summary
 void addDriver(TravelerCountGroup item)
          Add a 'DriverType' element item.
 void addRateDistance(VehicleRateDistanceGroup item)
          Add a 'RateDistance' element item.
 void addUniqueID(UniqueID item)
          Add a 'UniqueID' element item.
 void clearDrivers()
          Remove all 'DriverType' element items.
 void clearRateDistances()
          Remove all 'RateDistance' element items.
 void clearUniqueIDs()
          Remove all 'UniqueID' element items.
 CustomerPrimaryAdditional getCustomer()
          Get the 'Customer' element value.
 TravelerCountGroup getDriver(int index)
          Get 'DriverType' element item by position.
 java.util.List<TravelerCountGroup> getDrivers()
          Get the list of 'DriverType' element items.
 VehicleReservationRQCore.Fees getFees()
          Get the 'Fees' element value.
 QueueGroup getQueue()
          Get the 'QueueGroup' attributeGroup value.
 VehicleRateDistanceGroup getRateDistance(int index)
          Get 'RateDistance' element item by position.
 java.util.List<VehicleRateDistanceGroup> getRateDistances()
          Get the list of 'RateDistance' element items.
 RateQualifier getRateQualifier()
          Get the 'RateQualifier' element value.
 VehicleReservationRQCore.SpecialEquipPrefs getSpecialEquipPrefs()
          Get the 'SpecialEquipPrefs' element value.
 java.lang.String getStatus()
          Get the 'Status' attribute value.
 VehicleTotalChargeGroup getTotalCharge()
          Get the 'VehicleTotalChargeGroup' attributeGroup value.
 TPAExtensions getTPAExtensions()
          Get the 'TPA_Extensions' element value.
 UniqueID getUniqueID(int index)
          Get 'UniqueID' element item by position.
 java.util.List<UniqueID> getUniqueIDs()
          Get the list of 'UniqueID' element items.
 VehicleReservationRQCore.VehicleCharges getVehicleCharges()
          Get the 'VehicleCharges' element value.
 VehiclePref getVehPref()
          Get the 'VehPref' element value.
 VehicleRentalCore getVehRentalCore()
          Get the 'VehRentalCore' element value.
 CompanyNamePref getVendorPref()
          Get the 'VendorPref' element value.
 void setCustomer(CustomerPrimaryAdditional customer)
          Set the 'Customer' element value.
 void setDrivers(java.util.List<TravelerCountGroup> list)
          Set the list of 'DriverType' element items.
 void setFees(VehicleReservationRQCore.Fees fees)
          Set the 'Fees' element value.
 void setQueue(QueueGroup queue)
          Set the 'QueueGroup' attributeGroup value.
 void setRateDistances(java.util.List<VehicleRateDistanceGroup> list)
          Set the list of 'RateDistance' element items.
 void setRateQualifier(RateQualifier rateQualifier)
          Set the 'RateQualifier' element value.
 void setSpecialEquipPrefs(VehicleReservationRQCore.SpecialEquipPrefs specialEquipPrefs)
          Set the 'SpecialEquipPrefs' element value.
 void setStatus(java.lang.String status)
          Set the 'Status' attribute value.
 void setTotalCharge(VehicleTotalChargeGroup totalCharge)
          Set the 'VehicleTotalChargeGroup' attributeGroup value.
 void setTPAExtensions(TPAExtensions TPAExtensions)
          Set the 'TPA_Extensions' element value.
 void setUniqueIDs(java.util.List<UniqueID> list)
          Set the list of 'UniqueID' element items.
 void setVehicleCharges(VehicleReservationRQCore.VehicleCharges vehicleCharges)
          Set the 'VehicleCharges' element value.
 void setVehPref(VehiclePref vehPref)
          Set the 'VehPref' element value.
 void setVehRentalCore(VehicleRentalCore vehRentalCore)
          Set the 'VehRentalCore' element value.
 void setVendorPref(CompanyNamePref vendorPref)
          Set the 'VendorPref' element value.
 int sizeDrivers()
          Get the number of 'DriverType' element items.
 int sizeRateDistances()
          Get the number of 'RateDistance' element items.
 int sizeUniqueIDs()
          Get the number of 'UniqueID' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VehicleReservationRQCore

public VehicleReservationRQCore()
Method Detail

getUniqueIDs

public java.util.List<UniqueID> getUniqueIDs()
Get the list of 'UniqueID' element items. A unique identifier by which to reference the reservation. This is typically referred to as a reservation number.

Returns:
list

setUniqueIDs

public void setUniqueIDs(java.util.List<UniqueID> list)
Set the list of 'UniqueID' element items. A unique identifier by which to reference the reservation. This is typically referred to as a reservation number.

Parameters:
list -

sizeUniqueIDs

public int sizeUniqueIDs()
Get the number of 'UniqueID' element items.

Returns:
count

addUniqueID

public void addUniqueID(UniqueID item)
Add a 'UniqueID' element item.

Parameters:
item -

getUniqueID

public UniqueID getUniqueID(int index)
Get 'UniqueID' element item by position.

Parameters:
index -
Returns:
item

clearUniqueIDs

public void clearUniqueIDs()
Remove all 'UniqueID' element items.


getVehRentalCore

public VehicleRentalCore getVehRentalCore()
Get the 'VehRentalCore' element value. Information that is common, or core, to all requests and responses associated with the reservation of a vehicle.

Returns:
value

setVehRentalCore

public void setVehRentalCore(VehicleRentalCore vehRentalCore)
Set the 'VehRentalCore' element value. Information that is common, or core, to all requests and responses associated with the reservation of a vehicle.

Parameters:
vehRentalCore -

getCustomer

public CustomerPrimaryAdditional getCustomer()
Get the 'Customer' element value. Information on the one primary driver and, optionally, several additional drivers. This may be used to provide a frequent renter number.

Returns:
value

setCustomer

public void setCustomer(CustomerPrimaryAdditional customer)
Set the 'Customer' element value. Information on the one primary driver and, optionally, several additional drivers. This may be used to provide a frequent renter number.

Parameters:
customer -

getVendorPref

public CompanyNamePref getVendorPref()
Get the 'VendorPref' element value. Indicates the preferred Vendor Company for car rental. If a company name is supplied, the rates will be supplied for the specific Vendor Company. The company name is unique amongst the vendors. The name of the company is provided in this element.

Returns:
value

setVendorPref

public void setVendorPref(CompanyNamePref vendorPref)
Set the 'VendorPref' element value. Indicates the preferred Vendor Company for car rental. If a company name is supplied, the rates will be supplied for the specific Vendor Company. The company name is unique amongst the vendors. The name of the company is provided in this element.

Parameters:
vendorPref -

getVehPref

public VehiclePref getVehPref()
Get the 'VehPref' element value. Indicates any preferences for the vehicle, such as type, class, transmission, air conditioning.

Returns:
value

setVehPref

public void setVehPref(VehiclePref vehPref)
Set the 'VehPref' element value. Indicates any preferences for the vehicle, such as type, class, transmission, air conditioning.

Parameters:
vehPref -

getDrivers

public java.util.List<TravelerCountGroup> getDrivers()
Get the list of 'DriverType' element items. Indicates the number of people of each age category associated with this request.

Returns:
list

setDrivers

public void setDrivers(java.util.List<TravelerCountGroup> list)
Set the list of 'DriverType' element items. Indicates the number of people of each age category associated with this request.

Parameters:
list -

sizeDrivers

public int sizeDrivers()
Get the number of 'DriverType' element items.

Returns:
count

addDriver

public void addDriver(TravelerCountGroup item)
Add a 'DriverType' element item.

Parameters:
item -

getDriver

public TravelerCountGroup getDriver(int index)
Get 'DriverType' element item by position.

Parameters:
index -
Returns:
item

clearDrivers

public void clearDrivers()
Remove all 'DriverType' element items.


getRateQualifier

public RateQualifier getRateQualifier()
Get the 'RateQualifier' element value. Indicates the type of rates to be booked, along with any discount number or promotional codes that may affect the rate.

Returns:
value

setRateQualifier

public void setRateQualifier(RateQualifier rateQualifier)
Set the 'RateQualifier' element value. Indicates the type of rates to be booked, along with any discount number or promotional codes that may affect the rate.

Parameters:
rateQualifier -

getFees

public VehicleReservationRQCore.Fees getFees()
Get the 'Fees' element value.

Returns:
value

setFees

public void setFees(VehicleReservationRQCore.Fees fees)
Set the 'Fees' element value.

Parameters:
fees -

getVehicleCharges

public VehicleReservationRQCore.VehicleCharges getVehicleCharges()
Get the 'VehicleCharges' element value.

Returns:
value

setVehicleCharges

public void setVehicleCharges(VehicleReservationRQCore.VehicleCharges vehicleCharges)
Set the 'VehicleCharges' element value.

Parameters:
vehicleCharges -

getSpecialEquipPrefs

public VehicleReservationRQCore.SpecialEquipPrefs getSpecialEquipPrefs()
Get the 'SpecialEquipPrefs' element value.

Returns:
value

setSpecialEquipPrefs

public void setSpecialEquipPrefs(VehicleReservationRQCore.SpecialEquipPrefs specialEquipPrefs)
Set the 'SpecialEquipPrefs' element value.

Parameters:
specialEquipPrefs -

getRateDistances

public java.util.List<VehicleRateDistanceGroup> getRateDistances()
Get the list of 'RateDistance' element items. Information on the distance that a reserved vehicle may be driven as part of the standard rental charge. Such distance may be unlimited, or a quantity of miles or kilometers for a certain period of time. This may be repeated for situations such as an 8 day rental that has 500 miles per week and 100 miles per additional day.

Returns:
list

setRateDistances

public void setRateDistances(java.util.List<VehicleRateDistanceGroup> list)
Set the list of 'RateDistance' element items. Information on the distance that a reserved vehicle may be driven as part of the standard rental charge. Such distance may be unlimited, or a quantity of miles or kilometers for a certain period of time. This may be repeated for situations such as an 8 day rental that has 500 miles per week and 100 miles per additional day.

Parameters:
list -

sizeRateDistances

public int sizeRateDistances()
Get the number of 'RateDistance' element items.

Returns:
count

addRateDistance

public void addRateDistance(VehicleRateDistanceGroup item)
Add a 'RateDistance' element item.

Parameters:
item -

getRateDistance

public VehicleRateDistanceGroup getRateDistance(int index)
Get 'RateDistance' element item by position.

Parameters:
index -
Returns:
item

clearRateDistances

public void clearRateDistances()
Remove all 'RateDistance' element items.


getTotalCharge

public VehicleTotalChargeGroup getTotalCharge()
Get the 'VehicleTotalChargeGroup' attributeGroup value. Total cost for this reservation as returned from an availability search.

Returns:
value

setTotalCharge

public void setTotalCharge(VehicleTotalChargeGroup totalCharge)
Set the 'VehicleTotalChargeGroup' attributeGroup value. Total cost for this reservation as returned from an availability search.

Parameters:
totalCharge -

getQueue

public QueueGroup getQueue()
Get the 'QueueGroup' attributeGroup value. Information to identify a queue.

Returns:
value

setQueue

public void setQueue(QueueGroup queue)
Set the 'QueueGroup' attributeGroup value. Information to identify a queue.

Parameters:
queue -

getTPAExtensions

public TPAExtensions getTPAExtensions()
Get the 'TPA_Extensions' element value. A placeholder in the schema to allow for additional elements and attributes to be included if required, per Trading Partner Agreement (TPA).

Returns:
value

setTPAExtensions

public void setTPAExtensions(TPAExtensions TPAExtensions)
Set the 'TPA_Extensions' element value. A placeholder in the schema to allow for additional elements and attributes to be included if required, per Trading Partner Agreement (TPA).

Parameters:
TPAExtensions -

getStatus

public java.lang.String getStatus()
Get the 'Status' attribute value. Used to specify the status of the reservation with either one of the enumerations in InventoryStatusType or an UpperCaseAlphaLength1to2 code such as an IATA status code.

Returns:
value

setStatus

public void setStatus(java.lang.String status)
Set the 'Status' attribute value. Used to specify the status of the reservation with either one of the enumerations in InventoryStatusType or an UpperCaseAlphaLength1to2 code such as an IATA status code.

Parameters:
status -