org.ota.vehicle
Class VehicleAvailCore

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

public class VehicleAvailCore
extends java.lang.Object

The VehicleAvailCoreType complex type identifies the data that describes common, or core, information made available as part of describing the availability and rate of one or more vehicles. 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="VehicleAvailCoreType">
   <xs:sequence>
     <xs:element type="ns:VehicleType" name="Vehicle"/>
     <xs:element type="ns:VehicleRentalRateType" name="RentalRate" minOccurs="0" maxOccurs="5"/>
     <xs:element name="TotalCharge" minOccurs="0" maxOccurs="2">
       <!-- Reference to inner class TotalCharge -->
     </xs:element>
     <xs:element name="PricedEquips" minOccurs="0">
       <!-- Reference to inner class PricedEquips -->
     </xs:element>
     <xs:element name="Fees" minOccurs="0">
       <!-- Reference to inner class Fees -->
     </xs:element>
     <xs:element name="Reference" minOccurs="0">
       <!-- Reference to inner class Reference -->
     </xs:element>
     <xs:element name="Vendor" minOccurs="0">
       <!-- Reference to inner class Vendor -->
     </xs:element>
     <xs:element name="VendorLocation" minOccurs="0">
       <!-- Reference to inner class VendorLocation -->
     </xs:element>
     <xs:element name="DropOffLocation" minOccurs="0">
       <!-- Reference to inner class DropOffLocation -->
     </xs:element>
     <xs:element ref="ns:TPA_Extensions" minOccurs="0"/>
   </xs:sequence>
   <xs:attribute type="ns:InventoryStatusType" use="required" name="Status"/>
   <xs:attribute type="xs:boolean" use="optional" name="IsAlternateInd"/>
 </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 VehicleAvailCore.DropOffLocation
          The drop off location information for a specific vehicle.
static class VehicleAvailCore.Fees
          A collection of fees associated with this vehicle quotation.
static class VehicleAvailCore.PricedEquips
          A collection of special equipment that is part of this quote, along with the charges associated with this equipment.
static class VehicleAvailCore.Reference
          Information by which this availability quote can be later cross-referenced Schema fragment(s) for this class:
static class VehicleAvailCore.TotalCharge
          The anticipated total cost of a reservation, the sum of the individual charges, optional charges and associated fees.
static class VehicleAvailCore.Vendor
          The vendor for this vehicle type and its participation level in a system.
static class VehicleAvailCore.VendorLocation
          The vendor location information for a specific vehicle.
 
Constructor Summary
VehicleAvailCore()
           
 
Method Summary
 void addRentalRate(VehicleRentalRate item)
          Add a 'RentalRate' element item.
 void addTotalCharge(VehicleAvailCore.TotalCharge item)
          Add a 'TotalCharge' element item.
 void clearRentalRates()
          Remove all 'RentalRate' element items.
 void clearTotalCharges()
          Remove all 'TotalCharge' element items.
 VehicleAvailCore.DropOffLocation getDropOffLocation()
          Get the 'DropOffLocation' element value.
 VehicleAvailCore.Fees getFees()
          Get the 'Fees' element value.
 java.lang.Boolean getIsAlternateInd()
          Get the 'IsAlternateInd' attribute value.
 VehicleAvailCore.PricedEquips getPricedEquips()
          Get the 'PricedEquips' element value.
 VehicleAvailCore.Reference getReference()
          Get the 'Reference' element value.
 VehicleRentalRate getRentalRate(int index)
          Get 'RentalRate' element item by position.
 java.util.List<VehicleRentalRate> getRentalRates()
          Get the list of 'RentalRate' element items.
 InventoryStatus getStatus()
          Get the 'Status' attribute value.
 VehicleAvailCore.TotalCharge getTotalCharge(int index)
          Get 'TotalCharge' element item by position.
 java.util.List<VehicleAvailCore.TotalCharge> getTotalCharges()
          Get the list of 'TotalCharge' element items.
 TPAExtensions getTPAExtensions()
          Get the 'TPA_Extensions' element value.
 Vehicle getVehicle()
          Get the 'Vehicle' element value.
 VehicleAvailCore.Vendor getVendor()
          Get the 'Vendor' element value.
 VehicleAvailCore.VendorLocation getVendorLocation()
          Get the 'VendorLocation' element value.
 void setDropOffLocation(VehicleAvailCore.DropOffLocation dropOffLocation)
          Set the 'DropOffLocation' element value.
 void setFees(VehicleAvailCore.Fees fees)
          Set the 'Fees' element value.
 void setIsAlternateInd(java.lang.Boolean isAlternateInd)
          Set the 'IsAlternateInd' attribute value.
 void setPricedEquips(VehicleAvailCore.PricedEquips pricedEquips)
          Set the 'PricedEquips' element value.
 void setReference(VehicleAvailCore.Reference reference)
          Set the 'Reference' element value.
 void setRentalRates(java.util.List<VehicleRentalRate> list)
          Set the list of 'RentalRate' element items.
 void setStatus(InventoryStatus status)
          Set the 'Status' attribute value.
 void setTotalCharges(java.util.List<VehicleAvailCore.TotalCharge> list)
          Set the list of 'TotalCharge' element items.
 void setTPAExtensions(TPAExtensions TPAExtensions)
          Set the 'TPA_Extensions' element value.
 void setVehicle(Vehicle vehicle)
          Set the 'Vehicle' element value.
 void setVendor(VehicleAvailCore.Vendor vendor)
          Set the 'Vendor' element value.
 void setVendorLocation(VehicleAvailCore.VendorLocation vendorLocation)
          Set the 'VendorLocation' element value.
 int sizeRentalRates()
          Get the number of 'RentalRate' element items.
 int sizeTotalCharges()
          Get the number of 'TotalCharge' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VehicleAvailCore

public VehicleAvailCore()
Method Detail

getVehicle

public Vehicle getVehicle()
Get the 'Vehicle' element value. Information on one specific vehicle along with detailed information on the charges associated with this vehicle.

Returns:
value

setVehicle

public void setVehicle(Vehicle vehicle)
Set the 'Vehicle' element value. Information on one specific vehicle along with detailed information on the charges associated with this vehicle.

Parameters:
vehicle -

getRentalRates

public java.util.List<VehicleRentalRate> getRentalRates()
Get the list of 'RentalRate' element items. Information on the rates associated with this vehicle. Rate information can include the distance and the base rental cost, along with information on the various factors that may infuence this rate. This element may repeat to allow different distances to be made available for different charges. For example, $20.00 with 100 miles per day or $30.00 for unlimited mileage.

Returns:
list

setRentalRates

public void setRentalRates(java.util.List<VehicleRentalRate> list)
Set the list of 'RentalRate' element items. Information on the rates associated with this vehicle. Rate information can include the distance and the base rental cost, along with information on the various factors that may infuence this rate. This element may repeat to allow different distances to be made available for different charges. For example, $20.00 with 100 miles per day or $30.00 for unlimited mileage.

Parameters:
list -

sizeRentalRates

public int sizeRentalRates()
Get the number of 'RentalRate' element items.

Returns:
count

addRentalRate

public void addRentalRate(VehicleRentalRate item)
Add a 'RentalRate' element item.

Parameters:
item -

getRentalRate

public VehicleRentalRate getRentalRate(int index)
Get 'RentalRate' element item by position.

Parameters:
index -
Returns:
item

clearRentalRates

public void clearRentalRates()
Remove all 'RentalRate' element items.


getTotalCharges

public java.util.List<VehicleAvailCore.TotalCharge> getTotalCharges()
Get the list of 'TotalCharge' element items.

Returns:
list

setTotalCharges

public void setTotalCharges(java.util.List<VehicleAvailCore.TotalCharge> list)
Set the list of 'TotalCharge' element items.

Parameters:
list -

sizeTotalCharges

public int sizeTotalCharges()
Get the number of 'TotalCharge' element items.

Returns:
count

addTotalCharge

public void addTotalCharge(VehicleAvailCore.TotalCharge item)
Add a 'TotalCharge' element item.

Parameters:
item -

getTotalCharge

public VehicleAvailCore.TotalCharge getTotalCharge(int index)
Get 'TotalCharge' element item by position.

Parameters:
index -
Returns:
item

clearTotalCharges

public void clearTotalCharges()
Remove all 'TotalCharge' element items.


getPricedEquips

public VehicleAvailCore.PricedEquips getPricedEquips()
Get the 'PricedEquips' element value.

Returns:
value

setPricedEquips

public void setPricedEquips(VehicleAvailCore.PricedEquips pricedEquips)
Set the 'PricedEquips' element value.

Parameters:
pricedEquips -

getFees

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

Returns:
value

setFees

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

Parameters:
fees -

getReference

public VehicleAvailCore.Reference getReference()
Get the 'Reference' element value.

Returns:
value

setReference

public void setReference(VehicleAvailCore.Reference reference)
Set the 'Reference' element value.

Parameters:
reference -

getVendor

public VehicleAvailCore.Vendor getVendor()
Get the 'Vendor' element value.

Returns:
value

setVendor

public void setVendor(VehicleAvailCore.Vendor vendor)
Set the 'Vendor' element value.

Parameters:
vendor -

getVendorLocation

public VehicleAvailCore.VendorLocation getVendorLocation()
Get the 'VendorLocation' element value.

Returns:
value

setVendorLocation

public void setVendorLocation(VehicleAvailCore.VendorLocation vendorLocation)
Set the 'VendorLocation' element value.

Parameters:
vendorLocation -

getDropOffLocation

public VehicleAvailCore.DropOffLocation getDropOffLocation()
Get the 'DropOffLocation' element value.

Returns:
value

setDropOffLocation

public void setDropOffLocation(VehicleAvailCore.DropOffLocation dropOffLocation)
Set the 'DropOffLocation' element value.

Parameters:
dropOffLocation -

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 -

getIsAlternateInd

public java.lang.Boolean getIsAlternateInd()
Get the 'IsAlternateInd' attribute value. When true, this vehicle is an alternate to what was requested.

Returns:
value

setIsAlternateInd

public void setIsAlternateInd(java.lang.Boolean isAlternateInd)
Set the 'IsAlternateInd' attribute value. When true, this vehicle is an alternate to what was requested.

Parameters:
isAlternateInd -