org.ota.vehicle
Class VehicleLocationVehicles.Vehicle

java.lang.Object
  extended by org.ota.vehicle.VehicleCore
      extended by org.ota.vehicle.Vehicle
          extended by org.ota.vehicle.VehicleLocationVehicles.Vehicle
Enclosing class:
VehicleLocationVehicles

public static class VehicleLocationVehicles.Vehicle
extends Vehicle

Specific information about a vehicle that is offered for rental at this facility. This element may repeat to identify all vehicles that may be rented from this facility. 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="Vehicle" minOccurs="0" maxOccurs="99">
   <xs:complexType>
     <xs:complexContent>
       <xs:extension base="ns:VehicleType">
         <xs:sequence>
           <xs:element type="ns:FormattedTextType" name="Text" minOccurs="0" maxOccurs="5"/>
         </xs:sequence>
         <xs:attribute type="xs:boolean" use="optional" name="IsConfirmableInd"/>
         <xs:attribute type="ns:DistanceUnitNameType" use="optional" name="DistanceUnit"/>
         <xs:attribute type="xs:int" use="optional" name="DistancePerFuelUnit"/>
       </xs:extension>
     </xs:complexContent>
   </xs:complexType>
 </xs:element>
 


Nested Class Summary
 
Nested classes/interfaces inherited from class org.ota.vehicle.VehicleCore
VehicleCore.Drive, VehicleCore.Fuel, VehicleCore.VehClass
 
Constructor Summary
VehicleLocationVehicles.Vehicle()
           
 
Method Summary
 void addText(FormattedText item)
          Add a 'Text' element item.
 void clearTexts()
          Remove all 'Text' element items.
 java.lang.Integer getDistancePerFuelUnit()
          Get the 'DistancePerFuelUnit' attribute value.
 DistanceUnitName getDistanceUnit()
          Get the 'DistanceUnit' attribute value.
 java.lang.Boolean getIsConfirmableInd()
          Get the 'IsConfirmableInd' attribute value.
 FormattedText getText(int index)
          Get 'Text' element item by position.
 java.util.List<FormattedText> getTexts()
          Get the list of 'Text' element items.
 void setDistancePerFuelUnit(java.lang.Integer distancePerFuelUnit)
          Set the 'DistancePerFuelUnit' attribute value.
 void setDistanceUnit(DistanceUnitName distanceUnit)
          Set the 'DistanceUnit' attribute value.
 void setIsConfirmableInd(java.lang.Boolean isConfirmableInd)
          Set the 'IsConfirmableInd' attribute value.
 void setTexts(java.util.List<FormattedText> list)
          Set the list of 'Text' element items.
 int sizeTexts()
          Get the number of 'Text' element items.
 
Methods inherited from class org.ota.vehicle.Vehicle
getBaggageQuantity, getCodeGroup, getDateTimeSpanGroup, getOdometerUnitOfMeasure, getPassengerQuantity, getPictureURL, getUnitsOfMeasureGroup, getVehIdentity, getVehMakeModel, getVendorCar, setBaggageQuantity, setCodeGroup, setDateTimeSpanGroup, setOdometerUnitOfMeasure, setPassengerQuantity, setPictureURL, setUnitsOfMeasureGroup, setVehIdentity, setVehMakeModel, setVendorCar
 
Methods inherited from class org.ota.vehicle.VehicleCore
getAirConditionInd, getDrive, getFuel, getTransmission, getVeh, getVehClass, setAirConditionInd, setDrive, setFuel, setTransmission, setVeh, setVehClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VehicleLocationVehicles.Vehicle

public VehicleLocationVehicles.Vehicle()
Method Detail

getTexts

public java.util.List<FormattedText> getTexts()
Get the list of 'Text' element items. Free text information for this vehicle type.

Returns:
list

setTexts

public void setTexts(java.util.List<FormattedText> list)
Set the list of 'Text' element items. Free text information for this vehicle type.

Parameters:
list -

sizeTexts

public int sizeTexts()
Get the number of 'Text' element items.

Returns:
count

addText

public void addText(FormattedText item)
Add a 'Text' element item.

Parameters:
item -

getText

public FormattedText getText(int index)
Get 'Text' element item by position.

Parameters:
index -
Returns:
item

clearTexts

public void clearTexts()
Remove all 'Text' element items.


getIsConfirmableInd

public java.lang.Boolean getIsConfirmableInd()
Get the 'IsConfirmableInd' attribute value. If true, this car type may be confirmed. If false, it may not be confirmed.

Returns:
value

setIsConfirmableInd

public void setIsConfirmableInd(java.lang.Boolean isConfirmableInd)
Set the 'IsConfirmableInd' attribute value. If true, this car type may be confirmed. If false, it may not be confirmed.

Parameters:
isConfirmableInd -

getDistanceUnit

public DistanceUnitName getDistanceUnit()
Get the 'DistanceUnit' attribute value. To specify whether mileage information is miles or kilometers.

Returns:
value

setDistanceUnit

public void setDistanceUnit(DistanceUnitName distanceUnit)
Set the 'DistanceUnit' attribute value. To specify whether mileage information is miles or kilometers.

Parameters:
distanceUnit -

getDistancePerFuelUnit

public java.lang.Integer getDistancePerFuelUnit()
Get the 'DistancePerFuelUnit' attribute value. To specify the number of miles/kilometers per gallon/litre of gas.

Returns:
value

setDistancePerFuelUnit

public void setDistancePerFuelUnit(java.lang.Integer distancePerFuelUnit)
Set the 'DistancePerFuelUnit' attribute value. To specify the number of miles/kilometers per gallon/litre of gas.

Parameters:
distancePerFuelUnit -