org.ota.vehicle
Class VehicleLocationServicesOffered.OffLocationServices.OffLocationService.OffLocServiceCharges.OffLocServiceCharge.Vehicles

java.lang.Object
  extended by org.ota.vehicle.VehicleLocationServicesOffered.OffLocationServices.OffLocationService.OffLocServiceCharges.OffLocServiceCharge.Vehicles
Enclosing class:
VehicleLocationServicesOffered.OffLocationServices.OffLocationService.OffLocServiceCharges.OffLocServiceCharge

public static class VehicleLocationServicesOffered.OffLocationServices.OffLocationService.OffLocServiceCharges.OffLocServiceCharge.Vehicles
extends java.lang.Object

A collection of vehicles for which this charge applies. This is to be used when the charge associated with the service is not the same charge for all vehicle types. 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="Vehicles" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:VehicleCoreType" name="Vehicle" maxOccurs="99"/>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 


Constructor Summary
VehicleLocationServicesOffered.OffLocationServices.OffLocationService.OffLocServiceCharges.OffLocServiceCharge.Vehicles()
           
 
Method Summary
 void addVehicle(VehicleCore item)
          Add a 'Vehicle' element item.
 void clearVehicles()
          Remove all 'Vehicle' element items.
 VehicleCore getVehicle(int index)
          Get 'Vehicle' element item by position.
 java.util.List<VehicleCore> getVehicles()
          Get the list of 'Vehicle' element items.
 void setVehicles(java.util.List<VehicleCore> list)
          Set the list of 'Vehicle' element items.
 int sizeVehicles()
          Get the number of 'Vehicle' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VehicleLocationServicesOffered.OffLocationServices.OffLocationService.OffLocServiceCharges.OffLocServiceCharge.Vehicles

public VehicleLocationServicesOffered.OffLocationServices.OffLocationService.OffLocServiceCharges.OffLocServiceCharge.Vehicles()
Method Detail

getVehicles

public java.util.List<VehicleCore> getVehicles()
Get the list of 'Vehicle' element items. One specific vehicle type for which this charge applies. This is to be used when the charge associated with the service varies according to vehicle type.

Returns:
list

setVehicles

public void setVehicles(java.util.List<VehicleCore> list)
Set the list of 'Vehicle' element items. One specific vehicle type for which this charge applies. This is to be used when the charge associated with the service varies according to vehicle type.

Parameters:
list -

sizeVehicles

public int sizeVehicles()
Get the number of 'Vehicle' element items.

Returns:
count

addVehicle

public void addVehicle(VehicleCore item)
Add a 'Vehicle' element item.

Parameters:
item -

getVehicle

public VehicleCore getVehicle(int index)
Get 'Vehicle' element item by position.

Parameters:
index -
Returns:
item

clearVehicles

public void clearVehicles()
Remove all 'Vehicle' element items.