org.ota.vehicle
Class VehicleLocationRequirements.Age

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

public static class VehicleLocationRequirements.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: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 VehicleLocationRequirements.Age.AgeInfos
          Collection of descriptions about the different requirements related to age of driver Schema fragment(s) for this class:
static class VehicleLocationRequirements.Age.AgeSurcharge
          Surcharge information that may be applied based upon age of the renter.
 
Constructor Summary
VehicleLocationRequirements.Age()
           
 
Method Summary
 void addAgeSurcharge(VehicleLocationRequirements.Age.AgeSurcharge item)
          Add a 'AgeSurcharge' element item.
 void clearAgeSurcharges()
          Remove all 'AgeSurcharge' element items.
 VehicleLocationRequirements.Age.AgeInfos getAgeInfos()
          Get the 'AgeInfos' element value.
 VehicleLocationRequirements.Age.AgeSurcharge getAgeSurcharge(int index)
          Get 'AgeSurcharge' element item by position.
 java.util.List<VehicleLocationRequirements.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.
 void setAgeInfos(VehicleLocationRequirements.Age.AgeInfos ageInfos)
          Set the 'AgeInfos' element value.
 void setAgeSurcharges(java.util.List<VehicleLocationRequirements.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.
 int sizeAgeSurcharges()
          Get the number of 'AgeSurcharge' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VehicleLocationRequirements.Age

public VehicleLocationRequirements.Age()
Method Detail

getAgeSurcharges

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

Returns:
list

setAgeSurcharges

public void setAgeSurcharges(java.util.List<VehicleLocationRequirements.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(VehicleLocationRequirements.Age.AgeSurcharge item)
Add a 'AgeSurcharge' element item.

Parameters:
item -

getAgeSurcharge

public VehicleLocationRequirements.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 VehicleLocationRequirements.Age.AgeInfos getAgeInfos()
Get the 'AgeInfos' element value.

Returns:
value

setAgeInfos

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

Parameters:
ageInfos -

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 -