org.ota.vehicle
Class VehicleModifyRQCore

java.lang.Object
  extended by org.ota.vehicle.VehicleModifyRQCore
Direct Known Subclasses:
ModifyRQ.VehModifyRQCore

public class VehicleModifyRQCore
extends java.lang.Object

The VehicleModifyRQCoreType complex type identifies the data that is common in a request to modify an existing vehicle reservation. 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="VehicleModifyRQCoreType">
   <xs:sequence>
     <xs:element type="ns:UniqueID_Type" name="UniqueID" minOccurs="0" maxOccurs="2"/>
     <xs:element type="ns:VehicleRentalCoreType" name="VehRentalCore" minOccurs="0"/>
     <xs:element type="ns:CustomerPrimaryAdditionalType" name="Customer" minOccurs="0"/>
     <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 name="RateQualifier" minOccurs="0">
       <!-- Reference to inner class RateQualifier -->
     </xs:element>
     <xs:element name="RateRestriction" minOccurs="0">
       <!-- Reference to inner class RateRestriction -->
     </xs:element>
     <xs:element name="SpecialEquipPrefs" minOccurs="0">
       <!-- Reference to inner class SpecialEquipPrefs -->
     </xs:element>
     <xs:element type="ns:VehicleChargePurposeType" name="VehicleCharge" minOccurs="0" maxOccurs="99"/>
     <xs:element name="TotalCharge" minOccurs="0">
       <xs:complexType>
         <xs:attributeGroup ref="ns:VehicleTotalChargeGroup"/>
       </xs:complexType>
     </xs:element>
     <xs:element name="RateDistance" minOccurs="0" maxOccurs="5">
       <xs:complexType>
         <xs:attributeGroup ref="ns:VehicleRateDistanceGroup"/>
       </xs:complexType>
     </xs:element>
     <xs:element ref="ns:TPA_Extensions" minOccurs="0"/>
   </xs:sequence>
   <xs:attribute type="ns:InventoryStatusType" 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 VehicleModifyRQCore.RateQualifier
          Indicates the type of rates of interest to the customer, along with any discount number or promotional codes that may affect the rate.
static class VehicleModifyRQCore.RateRestriction
          Information on restrictions that may be associated with this rate.
static class VehicleModifyRQCore.SpecialEquipPrefs
          Indicates the preferences for one or more specific items of additional equipment, such as ski racks, child seats, etc.
 
Constructor Summary
VehicleModifyRQCore()
           
 
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 addVehicleCharge(VehicleChargePurpose item)
          Add a 'VehicleCharge' element item.
 void clearDrivers()
          Remove all 'DriverType' element items.
 void clearRateDistances()
          Remove all 'RateDistance' element items.
 void clearUniqueIDs()
          Remove all 'UniqueID' element items.
 void clearVehicleCharges()
          Remove all 'VehicleCharge' 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.
 VehicleRateDistanceGroup getRateDistance(int index)
          Get 'RateDistance' element item by position.
 java.util.List<VehicleRateDistanceGroup> getRateDistances()
          Get the list of 'RateDistance' element items.
 VehicleModifyRQCore.RateQualifier getRateQualifier()
          Get the 'RateQualifier' element value.
 VehicleModifyRQCore.RateRestriction getRateRestriction()
          Get the 'RateRestriction' element value.
 VehicleModifyRQCore.SpecialEquipPrefs getSpecialEquipPrefs()
          Get the 'SpecialEquipPrefs' element value.
 InventoryStatus 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.
 VehicleChargePurpose getVehicleCharge(int index)
          Get 'VehicleCharge' element item by position.
 java.util.List<VehicleChargePurpose> getVehicleCharges()
          Get the list of 'VehicleCharge' element items.
 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 setRateDistances(java.util.List<VehicleRateDistanceGroup> list)
          Set the list of 'RateDistance' element items.
 void setRateQualifier(VehicleModifyRQCore.RateQualifier rateQualifier)
          Set the 'RateQualifier' element value.
 void setRateRestriction(VehicleModifyRQCore.RateRestriction rateRestriction)
          Set the 'RateRestriction' element value.
 void setSpecialEquipPrefs(VehicleModifyRQCore.SpecialEquipPrefs specialEquipPrefs)
          Set the 'SpecialEquipPrefs' element value.
 void setStatus(InventoryStatus 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(java.util.List<VehicleChargePurpose> list)
          Set the list of 'VehicleCharge' element items.
 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.
 int sizeVehicleCharges()
          Get the number of 'VehicleCharge' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VehicleModifyRQCore

public VehicleModifyRQCore()
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 VehicleModifyRQCore.RateQualifier getRateQualifier()
Get the 'RateQualifier' element value.

Returns:
value

setRateQualifier

public void setRateQualifier(VehicleModifyRQCore.RateQualifier rateQualifier)
Set the 'RateQualifier' element value.

Parameters:
rateQualifier -

getRateRestriction

public VehicleModifyRQCore.RateRestriction getRateRestriction()
Get the 'RateRestriction' element value.

Returns:
value

setRateRestriction

public void setRateRestriction(VehicleModifyRQCore.RateRestriction rateRestriction)
Set the 'RateRestriction' element value.

Parameters:
rateRestriction -

getSpecialEquipPrefs

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

Returns:
value

setSpecialEquipPrefs

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

Parameters:
specialEquipPrefs -

getVehicleCharges

public java.util.List<VehicleChargePurpose> getVehicleCharges()
Get the list of 'VehicleCharge' element items. Information on the charges associated with this vehicle.

Returns:
list

setVehicleCharges

public void setVehicleCharges(java.util.List<VehicleChargePurpose> list)
Set the list of 'VehicleCharge' element items. Information on the charges associated with this vehicle.

Parameters:
list -

sizeVehicleCharges

public int sizeVehicleCharges()
Get the number of 'VehicleCharge' element items.

Returns:
count

addVehicleCharge

public void addVehicleCharge(VehicleChargePurpose item)
Add a 'VehicleCharge' element item.

Parameters:
item -

getVehicleCharge

public VehicleChargePurpose getVehicleCharge(int index)
Get 'VehicleCharge' element item by position.

Parameters:
index -
Returns:
item

clearVehicleCharges

public void clearVehicleCharges()
Remove all 'VehicleCharge' element items.


getTotalCharge

public VehicleTotalChargeGroup getTotalCharge()
Get the 'VehicleTotalChargeGroup' attributeGroup value. Provides the data that is used to express a total charge both including and excluding taxes and/or additional charges.

Returns:
value

setTotalCharge

public void setTotalCharge(VehicleTotalChargeGroup totalCharge)
Set the 'VehicleTotalChargeGroup' attributeGroup value. Provides the data that is used to express a total charge both including and excluding taxes and/or additional charges.

Parameters:
totalCharge -

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.


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 InventoryStatus getStatus()
Get the 'Status' attribute value.

Returns:
value

setStatus

public void setStatus(InventoryStatus status)
Set the 'Status' attribute value.

Parameters:
status -