org.ota.vehicle
Class VehicleRateDistanceGroup

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

public class VehicleRateDistanceGroup
extends java.lang.Object

Provides information on a distance associated with a particular rate (e.g., the distance may be expressed as Unlimited miles per rental period or 200 miles per day). Schema fragment(s) for this class:

 <xs:attributeGroup xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="VehicleRateDistanceGroup">
   <xs:attribute type="xs:boolean" use="required" name="Unlimited"/>
   <xs:attribute type="xs:int" use="optional" name="Quantity"/>
   <xs:attribute type="ns:DistanceUnitNameType" use="optional" name="DistUnitName"/>
   <xs:attribute type="ns:VehiclePeriodUnitNameType" use="optional" name="VehiclePeriodUnitName"/>
 </xs:attributeGroup>
 


Constructor Summary
VehicleRateDistanceGroup()
           
 
Method Summary
 DistanceUnitName getDistUnitName()
          Get the 'DistUnitName' attribute value.
 java.lang.Integer getQuantity()
          Get the 'Quantity' attribute value.
 VehiclePeriodUnitName getVehiclePeriodUnitName()
          Get the 'VehiclePeriodUnitName' attribute value.
 boolean isUnlimited()
          Get the 'Unlimited' attribute value.
 void setDistUnitName(DistanceUnitName distUnitName)
          Set the 'DistUnitName' attribute value.
 void setQuantity(java.lang.Integer quantity)
          Set the 'Quantity' attribute value.
 void setUnlimited(boolean unlimited)
          Set the 'Unlimited' attribute value.
 void setVehiclePeriodUnitName(VehiclePeriodUnitName vehiclePeriodUnitName)
          Set the 'VehiclePeriodUnitName' attribute value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VehicleRateDistanceGroup

public VehicleRateDistanceGroup()
Method Detail

isUnlimited

public boolean isUnlimited()
Get the 'Unlimited' attribute value. When true there is no mileage/kilometer restriction.

Returns:
value

setUnlimited

public void setUnlimited(boolean unlimited)
Set the 'Unlimited' attribute value. When true there is no mileage/kilometer restriction.

Parameters:
unlimited -

getQuantity

public java.lang.Integer getQuantity()
Get the 'Quantity' attribute value. Provides the number of miles/kilometers included, typically used when Unlimited is false.

Returns:
value

setQuantity

public void setQuantity(java.lang.Integer quantity)
Set the 'Quantity' attribute value. Provides the number of miles/kilometers included, typically used when Unlimited is false.

Parameters:
quantity -

getDistUnitName

public DistanceUnitName getDistUnitName()
Get the 'DistUnitName' attribute value. Provides the units in which distance is measured, when applied to the rental of a vehicle (i.e., miles or kilometers).

Returns:
value

setDistUnitName

public void setDistUnitName(DistanceUnitName distUnitName)
Set the 'DistUnitName' attribute value. Provides the units in which distance is measured, when applied to the rental of a vehicle (i.e., miles or kilometers).

Parameters:
distUnitName -

getVehiclePeriodUnitName

public VehiclePeriodUnitName getVehiclePeriodUnitName()
Get the 'VehiclePeriodUnitName' attribute value. Provides the period of time associated with the quantity and distance unit name (e.g. day).

Returns:
value

setVehiclePeriodUnitName

public void setVehiclePeriodUnitName(VehiclePeriodUnitName vehiclePeriodUnitName)
Set the 'VehiclePeriodUnitName' attribute value. Provides the period of time associated with the quantity and distance unit name (e.g. day).

Parameters:
vehiclePeriodUnitName -