org.ota.vehicle
Class VehicleVendorAvailability

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

public class VehicleVendorAvailability
extends java.lang.Object

The VehicleVendorAvailabilityType complex type identifies the data that describes the availability of one or more vehicles for a specific vendor, along with supplemental information about the vendor and the facilities of that vendor. 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="VehicleVendorAvailabilityType">
   <xs:sequence>
     <xs:element type="ns:CompanyNameType" name="Vendor" minOccurs="0"/>
     <xs:element name="VehAvails">
       <xs:complexType>
         <xs:sequence>
           <xs:element name="VehAvail" maxOccurs="99">
             <!-- Reference to inner class VehAvail -->
           </xs:element>
         </xs:sequence>
         <xs:attribute type="xs:string" use="optional" name="RateCategory"/>
         <xs:attribute type="ns:RatePeriodSimpleType" use="optional" name="RatePeriod"/>
       </xs:complexType>
     </xs:element>
     <xs:element type="ns:VehicleAvailVendorInfoType" name="Info" minOccurs="0"/>
   </xs:sequence>
 </xs:complexType>
 


Nested Class Summary
static class VehicleVendorAvailability.VehAvail
          Availability and rate information for one specific vehicle.
 
Constructor Summary
VehicleVendorAvailability()
           
 
Method Summary
 void addVehAvail(VehicleVendorAvailability.VehAvail item)
          Add a 'VehAvail' element item.
 void clearVehAvails()
          Remove all 'VehAvail' element items.
 VehicleAvailVendorInfo getInfo()
          Get the 'Info' element value.
 VehicleVendorAvailability.VehAvail getVehAvail(int index)
          Get 'VehAvail' element item by position.
 java.util.List<VehicleVendorAvailability.VehAvail> getVehAvails()
          Get the list of 'VehAvail' element items.
 java.lang.String getVehAvailsRateCategory()
          Get the 'RateCategory' attribute value.
 RatePeriodSimple getVehAvailsRatePeriod()
          Get the 'RatePeriod' attribute value.
 CompanyName getVendor()
          Get the 'Vendor' element value.
 void setInfo(VehicleAvailVendorInfo info)
          Set the 'Info' element value.
 void setVehAvails(java.util.List<VehicleVendorAvailability.VehAvail> list)
          Set the list of 'VehAvail' element items.
 void setVehAvailsRateCategory(java.lang.String vehAvailsRateCategory)
          Set the 'RateCategory' attribute value.
 void setVehAvailsRatePeriod(RatePeriodSimple vehAvailsRatePeriod)
          Set the 'RatePeriod' attribute value.
 void setVendor(CompanyName vendor)
          Set the 'Vendor' element value.
 int sizeVehAvails()
          Get the number of 'VehAvail' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VehicleVendorAvailability

public VehicleVendorAvailability()
Method Detail

getVendor

public CompanyName getVendor()
Get the 'Vendor' element value. Information on the vendor associated with this availability of vehicles

Returns:
value

setVendor

public void setVendor(CompanyName vendor)
Set the 'Vendor' element value. Information on the vendor associated with this availability of vehicles

Parameters:
vendor -

getVehAvails

public java.util.List<VehicleVendorAvailability.VehAvail> getVehAvails()
Get the list of 'VehAvail' element items. A collection of vehicles along with their availability and associated rate information.

Returns:
list

setVehAvails

public void setVehAvails(java.util.List<VehicleVendorAvailability.VehAvail> list)
Set the list of 'VehAvail' element items. A collection of vehicles along with their availability and associated rate information.

Parameters:
list -

sizeVehAvails

public int sizeVehAvails()
Get the number of 'VehAvail' element items.

Returns:
count

addVehAvail

public void addVehAvail(VehicleVendorAvailability.VehAvail item)
Add a 'VehAvail' element item.

Parameters:
item -

getVehAvail

public VehicleVendorAvailability.VehAvail getVehAvail(int index)
Get 'VehAvail' element item by position.

Parameters:
index -
Returns:
item

clearVehAvails

public void clearVehAvails()
Remove all 'VehAvail' element items.


getVehAvailsRateCategory

public java.lang.String getVehAvailsRateCategory()
Get the 'RateCategory' attribute value. The rate category for all the vehicles available. Refer to OpenTravel Code List Rate Category (RTC).

Returns:
value

setVehAvailsRateCategory

public void setVehAvailsRateCategory(java.lang.String vehAvailsRateCategory)
Set the 'RateCategory' attribute value. The rate category for all the vehicles available. Refer to OpenTravel Code List Rate Category (RTC).

Parameters:
vehAvailsRateCategory -

getVehAvailsRatePeriod

public RatePeriodSimple getVehAvailsRatePeriod()
Get the 'RatePeriod' attribute value. The rate period for all the vehicles available.

Returns:
value

setVehAvailsRatePeriod

public void setVehAvailsRatePeriod(RatePeriodSimple vehAvailsRatePeriod)
Set the 'RatePeriod' attribute value. The rate period for all the vehicles available.

Parameters:
vehAvailsRatePeriod -

getInfo

public VehicleAvailVendorInfo getInfo()
Get the 'Info' element value. Supplemental information associated with the vendor and the availability of the vehicles.

Returns:
value

setInfo

public void setInfo(VehicleAvailVendorInfo info)
Set the 'Info' element value. Supplemental information associated with the vendor and the availability of the vehicles.

Parameters:
info -