org.ota.vehicle
Class VehicleAvailRQCore.VehPrefs

java.lang.Object
  extended by org.ota.vehicle.VehicleAvailRQCore.VehPrefs
Enclosing class:
VehicleAvailRQCore

public static class VehicleAvailRQCore.VehPrefs
extends java.lang.Object

Indicates any preferences for the vehicle, such as type, class, transmission, air conditioning. 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="VehPrefs" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="VehPref" maxOccurs="10">
         <!-- Reference to inner class VehPref -->
       </xs:element>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 


Nested Class Summary
static class VehicleAvailRQCore.VehPrefs.VehPref
          A preference for one specific vehicle type.
 
Constructor Summary
VehicleAvailRQCore.VehPrefs()
           
 
Method Summary
 void addVehPref(VehicleAvailRQCore.VehPrefs.VehPref item)
          Add a 'VehPref' element item.
 void clearVehPrefs()
          Remove all 'VehPref' element items.
 VehicleAvailRQCore.VehPrefs.VehPref getVehPref(int index)
          Get 'VehPref' element item by position.
 java.util.List<VehicleAvailRQCore.VehPrefs.VehPref> getVehPrefs()
          Get the list of 'VehPref' element items.
 void setVehPrefs(java.util.List<VehicleAvailRQCore.VehPrefs.VehPref> list)
          Set the list of 'VehPref' element items.
 int sizeVehPrefs()
          Get the number of 'VehPref' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VehicleAvailRQCore.VehPrefs

public VehicleAvailRQCore.VehPrefs()
Method Detail

getVehPrefs

public java.util.List<VehicleAvailRQCore.VehPrefs.VehPref> getVehPrefs()
Get the list of 'VehPref' element items.

Returns:
list

setVehPrefs

public void setVehPrefs(java.util.List<VehicleAvailRQCore.VehPrefs.VehPref> list)
Set the list of 'VehPref' element items.

Parameters:
list -

sizeVehPrefs

public int sizeVehPrefs()
Get the number of 'VehPref' element items.

Returns:
count

addVehPref

public void addVehPref(VehicleAvailRQCore.VehPrefs.VehPref item)
Add a 'VehPref' element item.

Parameters:
item -

getVehPref

public VehicleAvailRQCore.VehPrefs.VehPref getVehPref(int index)
Get 'VehPref' element item by position.

Parameters:
index -
Returns:
item

clearVehPrefs

public void clearVehPrefs()
Remove all 'VehPref' element items.