org.ota.vehicle
Class VehicleAgeRequirements.Age

java.lang.Object
  extended by org.ota.vehicle.VehicleAgeRequirements.Age
Enclosing class:
VehicleAgeRequirements

public static class VehicleAgeRequirements.Age
extends java.lang.Object

Information associated with the age requirements of renting a vehicle. 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="Age" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="AgeSurcharge" minOccurs="0" maxOccurs="5">
         <!-- Reference to inner class AgeSurcharge -->
       </xs:element>
       <xs:element name="AgeInfos" minOccurs="0">
         <!-- Reference to inner class AgeInfos -->
       </xs:element>
       <xs:element name="Vehicles">
         <xs:complexType>
           <xs:sequence>
             <xs:element name="Vehicle" maxOccurs="99">
               <!-- Reference to inner class Vehicle -->
             </xs:element>
           </xs:sequence>
         </xs:complexType>
       </xs:element>
     </xs:sequence>
     <xs:attribute type="xs:string" use="optional" name="MinimumAge"/>
     <xs:attribute type="xs:string" use="optional" name="MaximumAge"/>
   </xs:complexType>
 </xs:element>
 


Nested Class Summary
static class VehicleAgeRequirements.Age.AgeInfos
          Collection of descriptions about the different requirements related to age of driver Schema fragment(s) for this class:
static class VehicleAgeRequirements.Age.AgeSurcharge
          Surcharge information that may be applied based upon age of the renter.
static class VehicleAgeRequirements.Age.Vehicle
          Identifies a specific vehicle type.
 
Constructor Summary
VehicleAgeRequirements.Age()
           
 
Method Summary
 void addAgeSurcharge(VehicleAgeRequirements.Age.AgeSurcharge item)
          Add a 'AgeSurcharge' element item.
 void addVehicle(VehicleAgeRequirements.Age.Vehicle item)
          Add a 'Vehicle' element item.
 void clearAgeSurcharges()
          Remove all 'AgeSurcharge' element items.
 void clearVehicles()
          Remove all 'Vehicle' element items.
 VehicleAgeRequirements.Age.AgeInfos getAgeInfos()
          Get the 'AgeInfos' element value.
 VehicleAgeRequirements.Age.AgeSurcharge getAgeSurcharge(int index)
          Get 'AgeSurcharge' element item by position.
 java.util.List<VehicleAgeRequirements.Age.AgeSurcharge> getAgeSurcharges()
          Get the list of 'AgeSurcharge' element items.
 java.lang.String getMaximumAge()
          Get the 'MaximumAge' attribute value.
 java.lang.String getMinimumAge()
          Get the 'MinimumAge' attribute value.
 VehicleAgeRequirements.Age.Vehicle getVehicle(int index)
          Get 'Vehicle' element item by position.
 java.util.List<VehicleAgeRequirements.Age.Vehicle> getVehicles()
          Get the list of 'Vehicle' element items.
 void setAgeInfos(VehicleAgeRequirements.Age.AgeInfos ageInfos)
          Set the 'AgeInfos' element value.
 void setAgeSurcharges(java.util.List<VehicleAgeRequirements.Age.AgeSurcharge> list)
          Set the list of 'AgeSurcharge' element items.
 void setMaximumAge(java.lang.String maximumAge)
          Set the 'MaximumAge' attribute value.
 void setMinimumAge(java.lang.String minimumAge)
          Set the 'MinimumAge' attribute value.
 void setVehicles(java.util.List<VehicleAgeRequirements.Age.Vehicle> list)
          Set the list of 'Vehicle' element items.
 int sizeAgeSurcharges()
          Get the number of 'AgeSurcharge' 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

VehicleAgeRequirements.Age

public VehicleAgeRequirements.Age()
Method Detail

getAgeSurcharges

public java.util.List<VehicleAgeRequirements.Age.AgeSurcharge> getAgeSurcharges()
Get the list of 'AgeSurcharge' element items.

Returns:
list

setAgeSurcharges

public void setAgeSurcharges(java.util.List<VehicleAgeRequirements.Age.AgeSurcharge> list)
Set the list of 'AgeSurcharge' element items.

Parameters:
list -

sizeAgeSurcharges

public int sizeAgeSurcharges()
Get the number of 'AgeSurcharge' element items.

Returns:
count

addAgeSurcharge

public void addAgeSurcharge(VehicleAgeRequirements.Age.AgeSurcharge item)
Add a 'AgeSurcharge' element item.

Parameters:
item -

getAgeSurcharge

public VehicleAgeRequirements.Age.AgeSurcharge getAgeSurcharge(int index)
Get 'AgeSurcharge' element item by position.

Parameters:
index -
Returns:
item

clearAgeSurcharges

public void clearAgeSurcharges()
Remove all 'AgeSurcharge' element items.


getAgeInfos

public VehicleAgeRequirements.Age.AgeInfos getAgeInfos()
Get the 'AgeInfos' element value.

Returns:
value

setAgeInfos

public void setAgeInfos(VehicleAgeRequirements.Age.AgeInfos ageInfos)
Set the 'AgeInfos' element value.

Parameters:
ageInfos -

getVehicles

public java.util.List<VehicleAgeRequirements.Age.Vehicle> getVehicles()
Get the list of 'Vehicle' element items. A collection of vehicle information associated to the age requirements.

Returns:
list

setVehicles

public void setVehicles(java.util.List<VehicleAgeRequirements.Age.Vehicle> list)
Set the list of 'Vehicle' element items. A collection of vehicle information associated to the age requirements.

Parameters:
list -

sizeVehicles

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

Returns:
count

addVehicle

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

Parameters:
item -

getVehicle

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

Parameters:
index -
Returns:
item

clearVehicles

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


getMinimumAge

public java.lang.String getMinimumAge()
Get the 'MinimumAge' attribute value. Identifies the minimum age of a person allowed to rent a vehicle from this rental facility.

Returns:
value

setMinimumAge

public void setMinimumAge(java.lang.String minimumAge)
Set the 'MinimumAge' attribute value. Identifies the minimum age of a person allowed to rent a vehicle from this rental facility.

Parameters:
minimumAge -

getMaximumAge

public java.lang.String getMaximumAge()
Get the 'MaximumAge' attribute value. Identifies the maximum age of a person allowed to rent a vehicle from this rental facility.

Returns:
value

setMaximumAge

public void setMaximumAge(java.lang.String maximumAge)
Set the 'MaximumAge' attribute value. Identifies the maximum age of a person allowed to rent a vehicle from this rental facility.

Parameters:
maximumAge -