org.ota.vehicle
Class VehicleRentalDetails

java.lang.Object
  extended by org.ota.vehicle.VehicleRentalDetails
Direct Known Subclasses:
ExchangeRS.Vehicle.VehRentalDetails

public class VehicleRentalDetails
extends java.lang.Object

This provides specific information regarding the milage and condition of the vehicle being rented. 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="VehicleRentalDetailsType">
   <xs:sequence>
     <xs:element name="FuelLevelDetails" minOccurs="0">
       <!-- Reference to inner class FuelLevelDetails -->
     </xs:element>
     <xs:element name="OdometerReading" minOccurs="0">
       <xs:complexType>
         <xs:attributeGroup ref="ns:UnitsOfMeasureGroup"/>
       </xs:complexType>
     </xs:element>
     <xs:element name="ConditionReport" minOccurs="0" maxOccurs="5">
       <!-- Reference to inner class ConditionReport -->
     </xs:element>
   </xs:sequence>
   <xs:attribute type="xs:string" use="optional" name="ParkingLocation"/>
 </xs:complexType>
 


Nested Class Summary
static class VehicleRentalDetails.ConditionReport
          Used to describe condition of a vehicle (e.g., scratches, broken tail light).
static class VehicleRentalDetails.FuelLevelDetails
          This provides values based on the amount of fuel present.
 
Constructor Summary
VehicleRentalDetails()
           
 
Method Summary
 void addConditionReport(VehicleRentalDetails.ConditionReport item)
          Add a 'ConditionReport' element item.
 void clearConditionReports()
          Remove all 'ConditionReport' element items.
 VehicleRentalDetails.ConditionReport getConditionReport(int index)
          Get 'ConditionReport' element item by position.
 java.util.List<VehicleRentalDetails.ConditionReport> getConditionReports()
          Get the list of 'ConditionReport' element items.
 VehicleRentalDetails.FuelLevelDetails getFuelLevelDetails()
          Get the 'FuelLevelDetails' element value.
 UnitsOfMeasureGroup getOdometerReading()
          Get the 'UnitsOfMeasureGroup' attributeGroup value.
 java.lang.String getParkingLocation()
          Get the 'ParkingLocation' attribute value.
 void setConditionReports(java.util.List<VehicleRentalDetails.ConditionReport> list)
          Set the list of 'ConditionReport' element items.
 void setFuelLevelDetails(VehicleRentalDetails.FuelLevelDetails fuelLevelDetails)
          Set the 'FuelLevelDetails' element value.
 void setOdometerReading(UnitsOfMeasureGroup odometerReading)
          Set the 'UnitsOfMeasureGroup' attributeGroup value.
 void setParkingLocation(java.lang.String parkingLocation)
          Set the 'ParkingLocation' attribute value.
 int sizeConditionReports()
          Get the number of 'ConditionReport' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VehicleRentalDetails

public VehicleRentalDetails()
Method Detail

getFuelLevelDetails

public VehicleRentalDetails.FuelLevelDetails getFuelLevelDetails()
Get the 'FuelLevelDetails' element value.

Returns:
value

setFuelLevelDetails

public void setFuelLevelDetails(VehicleRentalDetails.FuelLevelDetails fuelLevelDetails)
Set the 'FuelLevelDetails' element value.

Parameters:
fuelLevelDetails -

getOdometerReading

public UnitsOfMeasureGroup getOdometerReading()
Get the 'UnitsOfMeasureGroup' attributeGroup value. Used for interpreting the Odometer value displayed in the Odometer Reading on the dashboard of the vehicle (10 miles, 100 kilometers).

Returns:
value

setOdometerReading

public void setOdometerReading(UnitsOfMeasureGroup odometerReading)
Set the 'UnitsOfMeasureGroup' attributeGroup value. Used for interpreting the Odometer value displayed in the Odometer Reading on the dashboard of the vehicle (10 miles, 100 kilometers).

Parameters:
odometerReading -

getConditionReports

public java.util.List<VehicleRentalDetails.ConditionReport> getConditionReports()
Get the list of 'ConditionReport' element items.

Returns:
list

setConditionReports

public void setConditionReports(java.util.List<VehicleRentalDetails.ConditionReport> list)
Set the list of 'ConditionReport' element items.

Parameters:
list -

sizeConditionReports

public int sizeConditionReports()
Get the number of 'ConditionReport' element items.

Returns:
count

addConditionReport

public void addConditionReport(VehicleRentalDetails.ConditionReport item)
Add a 'ConditionReport' element item.

Parameters:
item -

getConditionReport

public VehicleRentalDetails.ConditionReport getConditionReport(int index)
Get 'ConditionReport' element item by position.

Parameters:
index -
Returns:
item

clearConditionReports

public void clearConditionReports()
Remove all 'ConditionReport' element items.


getParkingLocation

public java.lang.String getParkingLocation()
Get the 'ParkingLocation' attribute value. This identifies the physical location of the vehicle being rented (e.g., the parking space or stall number).

Returns:
value

setParkingLocation

public void setParkingLocation(java.lang.String parkingLocation)
Set the 'ParkingLocation' attribute value. This identifies the physical location of the vehicle being rented (e.g., the parking space or stall number).

Parameters:
parkingLocation -