org.ota.vehicle
Class VehiclePref

java.lang.Object
  extended by org.ota.vehicle.VehicleCore
      extended by org.ota.vehicle.VehiclePref
Direct Known Subclasses:
VehicleAvailRQCore.VehPrefs.VehPref

public class VehiclePref
extends VehicleCore

The VehiclePrefType complex type defines the information that is used when defining a preference of a vehicle. 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="VehiclePrefType">
   <xs:complexContent>
     <xs:extension base="ns:VehicleCoreType">
       <xs:sequence>
         <xs:element name="VehMakeModel" minOccurs="0">
           <xs:complexType>
             <xs:attributeGroup ref="ns:VehicleMakeModelGroup"/>
           </xs:complexType>
         </xs:element>
       </xs:sequence>
       <xs:attribute type="ns:PreferLevelType" use="optional" name="TypePref"/>
       <xs:attribute type="ns:PreferLevelType" use="optional" name="ClassPref"/>
       <xs:attribute type="ns:PreferLevelType" use="optional" name="AirConditionPref"/>
       <xs:attribute type="ns:PreferLevelType" use="optional" name="TransmissionPref"/>
       <xs:attribute type="xs:string" use="optional" name="VendorCarType"/>
       <xs:attribute type="xs:int" use="optional" name="VehicleQty"/>
       <xs:attributeGroup ref="ns:CodeGroup"/>
     </xs:extension>
   </xs:complexContent>
 </xs:complexType>
 


Nested Class Summary
 
Nested classes/interfaces inherited from class org.ota.vehicle.VehicleCore
VehicleCore.Drive, VehicleCore.Fuel, VehicleCore.VehClass
 
Constructor Summary
VehiclePref()
           
 
Method Summary
 PreferLevel getAirConditionPref()
          Get the 'AirConditionPref' attribute value.
 PreferLevel getClassPref()
          Get the 'ClassPref' attribute value.
 CodeGroup getCodeGroup()
          Get the 'CodeGroup' attributeGroup value.
 PreferLevel getTransmissionPref()
          Get the 'TransmissionPref' attribute value.
 PreferLevel getTypePref()
          Get the 'TypePref' attribute value.
 java.lang.Integer getVehicleQty()
          Get the 'VehicleQty' attribute value.
 VehicleMakeModelGroup getVehMakeModel()
          Get the 'VehicleMakeModelGroup' attributeGroup value.
 java.lang.String getVendorCar()
          Get the 'VendorCarType' attribute value.
 void setAirConditionPref(PreferLevel airConditionPref)
          Set the 'AirConditionPref' attribute value.
 void setClassPref(PreferLevel classPref)
          Set the 'ClassPref' attribute value.
 void setCodeGroup(CodeGroup codeGroup)
          Set the 'CodeGroup' attributeGroup value.
 void setTransmissionPref(PreferLevel transmissionPref)
          Set the 'TransmissionPref' attribute value.
 void setTypePref(PreferLevel typePref)
          Set the 'TypePref' attribute value.
 void setVehicleQty(java.lang.Integer vehicleQty)
          Set the 'VehicleQty' attribute value.
 void setVehMakeModel(VehicleMakeModelGroup vehMakeModel)
          Set the 'VehicleMakeModelGroup' attributeGroup value.
 void setVendorCar(java.lang.String vendorCar)
          Set the 'VendorCarType' attribute value.
 
Methods inherited from class org.ota.vehicle.VehicleCore
getAirConditionInd, getDrive, getFuel, getTransmission, getVeh, getVehClass, setAirConditionInd, setDrive, setFuel, setTransmission, setVeh, setVehClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VehiclePref

public VehiclePref()
Method Detail

getVehMakeModel

public VehicleMakeModelGroup getVehMakeModel()
Get the 'VehicleMakeModelGroup' attributeGroup value. The make and model of the vehicle (e.g., Ford Focus). The Code attribute may be used for the SIPP code.

Returns:
value

setVehMakeModel

public void setVehMakeModel(VehicleMakeModelGroup vehMakeModel)
Set the 'VehicleMakeModelGroup' attributeGroup value. The make and model of the vehicle (e.g., Ford Focus). The Code attribute may be used for the SIPP code.

Parameters:
vehMakeModel -

getTypePref

public PreferLevel getTypePref()
Get the 'TypePref' attribute value.

Returns:
value

setTypePref

public void setTypePref(PreferLevel typePref)
Set the 'TypePref' attribute value.

Parameters:
typePref -

getClassPref

public PreferLevel getClassPref()
Get the 'ClassPref' attribute value.

Returns:
value

setClassPref

public void setClassPref(PreferLevel classPref)
Set the 'ClassPref' attribute value.

Parameters:
classPref -

getAirConditionPref

public PreferLevel getAirConditionPref()
Get the 'AirConditionPref' attribute value.

Returns:
value

setAirConditionPref

public void setAirConditionPref(PreferLevel airConditionPref)
Set the 'AirConditionPref' attribute value.

Parameters:
airConditionPref -

getTransmissionPref

public PreferLevel getTransmissionPref()
Get the 'TransmissionPref' attribute value.

Returns:
value

setTransmissionPref

public void setTransmissionPref(PreferLevel transmissionPref)
Set the 'TransmissionPref' attribute value.

Parameters:
transmissionPref -

getVendorCar

public java.lang.String getVendorCar()
Get the 'VendorCarType' attribute value. An internal car type assigned by the vendor. This is not the SIPP code.

Returns:
value

setVendorCar

public void setVendorCar(java.lang.String vendorCar)
Set the 'VendorCarType' attribute value. An internal car type assigned by the vendor. This is not the SIPP code.

Parameters:
vendorCar -

getVehicleQty

public java.lang.Integer getVehicleQty()
Get the 'VehicleQty' attribute value. The total number of cars a customer is eventually interested in reserving. This is not used by suppliers and is in no way intended to imply that multiple cars may be booked in a single reservation.

Returns:
value

setVehicleQty

public void setVehicleQty(java.lang.Integer vehicleQty)
Set the 'VehicleQty' attribute value. The total number of cars a customer is eventually interested in reserving. This is not used by suppliers and is in no way intended to imply that multiple cars may be booked in a single reservation.

Parameters:
vehicleQty -

getCodeGroup

public CodeGroup getCodeGroup()
Get the 'CodeGroup' attributeGroup value. Code used to identify the vehicle. May be used in place of VehicleCoreType. Typically a SIPP code would be passed here. CodeContext Identifies the source authority for the code (e.g., SIPP).

Returns:
value

setCodeGroup

public void setCodeGroup(CodeGroup codeGroup)
Set the 'CodeGroup' attributeGroup value. Code used to identify the vehicle. May be used in place of VehicleCoreType. Typically a SIPP code would be passed here. CodeContext Identifies the source authority for the code (e.g., SIPP).

Parameters:
codeGroup -