org.ota.vehicle
Class VehicleRentalRate

java.lang.Object
  extended by org.ota.vehicle.VehicleRentalRate
Direct Known Subclasses:
RateNotifRQ.Rate, RateRuleRS.RentalRate

public class VehicleRentalRate
extends java.lang.Object

This describes time, mileage and other charges. 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="VehicleRentalRateType">
   <xs:sequence>
     <xs:element name="RateDistance" minOccurs="0" maxOccurs="5">
       <xs:complexType>
         <xs:attributeGroup ref="ns:VehicleRateDistanceGroup"/>
       </xs:complexType>
     </xs:element>
     <xs:element name="VehicleCharges" minOccurs="0">
       <!-- Reference to inner class VehicleCharges -->
     </xs:element>
     <xs:element name="RateQualifier" minOccurs="0">
       <!-- Reference to inner class RateQualifier -->
     </xs:element>
     <xs:element name="RateRestrictions" minOccurs="0">
       <!-- Reference to inner class RateRestrictions -->
     </xs:element>
     <xs:element name="RateGuarantee" minOccurs="0">
       <!-- Reference to inner class RateGuarantee -->
     </xs:element>
     <xs:element name="PickupReturnRule" minOccurs="0" maxOccurs="3">
       <!-- Reference to inner class PickupReturnRule -->
     </xs:element>
   </xs:sequence>
 </xs:complexType>
 


Nested Class Summary
static class VehicleRentalRate.PickupReturnRule
          Pickup and return requirements for a specific rate.
static class VehicleRentalRate.RateGuarantee
          Used to indicate how long a specific rate is guaranteed.
static class VehicleRentalRate.RateQualifier
          Indicates the type of rates applicable to the customer, along with any discount number or promotional codes that affect the quoted rate.
static class VehicleRentalRate.RateRestrictions
          Information on restrictions that may be associated with this rate.
static class VehicleRentalRate.VehicleCharges
          Information on the charges associated with this vehicle.
 
Constructor Summary
VehicleRentalRate()
           
 
Method Summary
 void addPickupReturnRule(VehicleRentalRate.PickupReturnRule item)
          Add a 'PickupReturnRule' element item.
 void addRateDistance(VehicleRateDistanceGroup item)
          Add a 'RateDistance' element item.
 void clearPickupReturnRules()
          Remove all 'PickupReturnRule' element items.
 void clearRateDistances()
          Remove all 'RateDistance' element items.
 VehicleRentalRate.PickupReturnRule getPickupReturnRule(int index)
          Get 'PickupReturnRule' element item by position.
 java.util.List<VehicleRentalRate.PickupReturnRule> getPickupReturnRules()
          Get the list of 'PickupReturnRule' element items.
 VehicleRateDistanceGroup getRateDistance(int index)
          Get 'RateDistance' element item by position.
 java.util.List<VehicleRateDistanceGroup> getRateDistances()
          Get the list of 'RateDistance' element items.
 VehicleRentalRate.RateGuarantee getRateGuarantee()
          Get the 'RateGuarantee' element value.
 VehicleRentalRate.RateQualifier getRateQualifier()
          Get the 'RateQualifier' element value.
 VehicleRentalRate.RateRestrictions getRateRestrictions()
          Get the 'RateRestrictions' element value.
 VehicleRentalRate.VehicleCharges getVehicleCharges()
          Get the 'VehicleCharges' element value.
 void setPickupReturnRules(java.util.List<VehicleRentalRate.PickupReturnRule> list)
          Set the list of 'PickupReturnRule' element items.
 void setRateDistances(java.util.List<VehicleRateDistanceGroup> list)
          Set the list of 'RateDistance' element items.
 void setRateGuarantee(VehicleRentalRate.RateGuarantee rateGuarantee)
          Set the 'RateGuarantee' element value.
 void setRateQualifier(VehicleRentalRate.RateQualifier rateQualifier)
          Set the 'RateQualifier' element value.
 void setRateRestrictions(VehicleRentalRate.RateRestrictions rateRestrictions)
          Set the 'RateRestrictions' element value.
 void setVehicleCharges(VehicleRentalRate.VehicleCharges vehicleCharges)
          Set the 'VehicleCharges' element value.
 int sizePickupReturnRules()
          Get the number of 'PickupReturnRule' element items.
 int sizeRateDistances()
          Get the number of 'RateDistance' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VehicleRentalRate

public VehicleRentalRate()
Method Detail

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.


getVehicleCharges

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

Returns:
value

setVehicleCharges

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

Parameters:
vehicleCharges -

getRateQualifier

public VehicleRentalRate.RateQualifier getRateQualifier()
Get the 'RateQualifier' element value.

Returns:
value

setRateQualifier

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

Parameters:
rateQualifier -

getRateRestrictions

public VehicleRentalRate.RateRestrictions getRateRestrictions()
Get the 'RateRestrictions' element value.

Returns:
value

setRateRestrictions

public void setRateRestrictions(VehicleRentalRate.RateRestrictions rateRestrictions)
Set the 'RateRestrictions' element value.

Parameters:
rateRestrictions -

getRateGuarantee

public VehicleRentalRate.RateGuarantee getRateGuarantee()
Get the 'RateGuarantee' element value.

Returns:
value

setRateGuarantee

public void setRateGuarantee(VehicleRentalRate.RateGuarantee rateGuarantee)
Set the 'RateGuarantee' element value.

Parameters:
rateGuarantee -

getPickupReturnRules

public java.util.List<VehicleRentalRate.PickupReturnRule> getPickupReturnRules()
Get the list of 'PickupReturnRule' element items.

Returns:
list

setPickupReturnRules

public void setPickupReturnRules(java.util.List<VehicleRentalRate.PickupReturnRule> list)
Set the list of 'PickupReturnRule' element items.

Parameters:
list -

sizePickupReturnRules

public int sizePickupReturnRules()
Get the number of 'PickupReturnRule' element items.

Returns:
count

addPickupReturnRule

public void addPickupReturnRule(VehicleRentalRate.PickupReturnRule item)
Add a 'PickupReturnRule' element item.

Parameters:
item -

getPickupReturnRule

public VehicleRentalRate.PickupReturnRule getPickupReturnRule(int index)
Get 'PickupReturnRule' element item by position.

Parameters:
index -
Returns:
item

clearPickupReturnRules

public void clearPickupReturnRules()
Remove all 'PickupReturnRule' element items.