org.ota.vehicle
Class VehicleRentalRate.VehicleCharges

java.lang.Object
  extended by org.ota.vehicle.VehicleRentalRate.VehicleCharges
Enclosing class:
VehicleRentalRate

public static class VehicleRentalRate.VehicleCharges
extends java.lang.Object

Information on the charges associated with this vehicle. Such charges may include the base rental amount, additional mileage amounts, fuel costs, etc. Schema fragment(s) for this class:

 <xs:element xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="VehicleCharges" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:VehicleChargePurposeType" name="VehicleCharge" maxOccurs="99"/>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 


Constructor Summary
VehicleRentalRate.VehicleCharges()
           
 
Method Summary
 void addVehicleCharge(VehicleChargePurpose item)
          Add a 'VehicleCharge' element item.
 void clearVehicleCharges()
          Remove all 'VehicleCharge' element items.
 VehicleChargePurpose getVehicleCharge(int index)
          Get 'VehicleCharge' element item by position.
 java.util.List<VehicleChargePurpose> getVehicleCharges()
          Get the list of 'VehicleCharge' element items.
 void setVehicleCharges(java.util.List<VehicleChargePurpose> list)
          Set the list of 'VehicleCharge' element items.
 int sizeVehicleCharges()
          Get the number of 'VehicleCharge' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VehicleRentalRate.VehicleCharges

public VehicleRentalRate.VehicleCharges()
Method Detail

getVehicleCharges

public java.util.List<VehicleChargePurpose> getVehicleCharges()
Get the list of 'VehicleCharge' element items. Detailed information on one specific charge including an indication of the type of charge.

Returns:
list

setVehicleCharges

public void setVehicleCharges(java.util.List<VehicleChargePurpose> list)
Set the list of 'VehicleCharge' element items. Detailed information on one specific charge including an indication of the type of charge.

Parameters:
list -

sizeVehicleCharges

public int sizeVehicleCharges()
Get the number of 'VehicleCharge' element items.

Returns:
count

addVehicleCharge

public void addVehicleCharge(VehicleChargePurpose item)
Add a 'VehicleCharge' element item.

Parameters:
item -

getVehicleCharge

public VehicleChargePurpose getVehicleCharge(int index)
Get 'VehicleCharge' element item by position.

Parameters:
index -
Returns:
item

clearVehicleCharges

public void clearVehicleCharges()
Remove all 'VehicleCharge' element items.