org.ota.vehicle
Class VehicleLocationDetails

java.lang.Object
  extended by org.ota.vehicle.VehicleLocationDetails
Direct Known Subclasses:
ExchangeRS.ExchangeLocationDetails, RateRuleRS.LocationDetails

public class VehicleLocationDetails
extends java.lang.Object

The VehicleLocationDetailsType complex type defines the core information that describes a vehicle rental facility. Such information may include the code of the facility, the name assigned to that facility, the address and telephone number of the facility. 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="VehicleLocationDetailsType">
   <xs:sequence>
     <xs:element type="ns:AddressInfoType" name="Address" minOccurs="0" maxOccurs="5"/>
     <xs:element name="Telephone" minOccurs="0" maxOccurs="5">
       <xs:complexType>
         <xs:attributeGroup ref="ns:TelephoneInfoGroup"/>
       </xs:complexType>
     </xs:element>
     <xs:element type="ns:VehicleLocationAdditionalDetailsType" name="AdditionalInfo" minOccurs="0"/>
   </xs:sequence>
   <xs:attribute type="xs:boolean" use="optional" name="AtAirport"/>
   <xs:attribute type="xs:string" use="optional" name="Code"/>
   <xs:attribute type="xs:string" use="optional" name="Name"/>
   <xs:attribute type="xs:string" use="optional" name="CodeContext"/>
   <xs:attribute type="xs:string" use="optional" name="ExtendedLocationCode"/>
   <xs:attribute type="xs:string" use="optional" name="AssocAirportLocList"/>
 </xs:complexType>
 


Constructor Summary
VehicleLocationDetails()
           
 
Method Summary
 void addAddress(AddressInfo item)
          Add a 'Address' element item.
 void addTelephone(TelephoneInfoGroup item)
          Add a 'Telephone' element item.
 void clearAddresses()
          Remove all 'Address' element items.
 void clearTelephones()
          Remove all 'Telephone' element items.
 VehicleLocationAdditionalDetails getAdditionalInfo()
          Get the 'AdditionalInfo' element value.
 AddressInfo getAddress(int index)
          Get 'Address' element item by position.
 java.util.List<AddressInfo> getAddresses()
          Get the list of 'Address' element items.
 java.lang.String getAssocAirportLocList()
          Get the 'AssocAirportLocList' attribute value.
 java.lang.Boolean getAtAirport()
          Get the 'AtAirport' attribute value.
 java.lang.String getCode()
          Get the 'Code' attribute value.
 java.lang.String getCodeContext()
          Get the 'CodeContext' attribute value.
 java.lang.String getExtendedLocationCode()
          Get the 'ExtendedLocationCode' attribute value.
 java.lang.String getName()
          Get the 'Name' attribute value.
 TelephoneInfoGroup getTelephone(int index)
          Get 'Telephone' element item by position.
 java.util.List<TelephoneInfoGroup> getTelephones()
          Get the list of 'Telephone' element items.
 void setAdditionalInfo(VehicleLocationAdditionalDetails additionalInfo)
          Set the 'AdditionalInfo' element value.
 void setAddresses(java.util.List<AddressInfo> list)
          Set the list of 'Address' element items.
 void setAssocAirportLocList(java.lang.String assocAirportLocList)
          Set the 'AssocAirportLocList' attribute value.
 void setAtAirport(java.lang.Boolean atAirport)
          Set the 'AtAirport' attribute value.
 void setCode(java.lang.String code)
          Set the 'Code' attribute value.
 void setCodeContext(java.lang.String codeContext)
          Set the 'CodeContext' attribute value.
 void setExtendedLocationCode(java.lang.String extendedLocationCode)
          Set the 'ExtendedLocationCode' attribute value.
 void setName(java.lang.String name)
          Set the 'Name' attribute value.
 void setTelephones(java.util.List<TelephoneInfoGroup> list)
          Set the list of 'Telephone' element items.
 int sizeAddresses()
          Get the number of 'Address' element items.
 int sizeTelephones()
          Get the number of 'Telephone' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VehicleLocationDetails

public VehicleLocationDetails()
Method Detail

getAddresses

public java.util.List<AddressInfo> getAddresses()
Get the list of 'Address' element items. Information about the physical address of the location

Returns:
list

setAddresses

public void setAddresses(java.util.List<AddressInfo> list)
Set the list of 'Address' element items. Information about the physical address of the location

Parameters:
list -

sizeAddresses

public int sizeAddresses()
Get the number of 'Address' element items.

Returns:
count

addAddress

public void addAddress(AddressInfo item)
Add a 'Address' element item.

Parameters:
item -

getAddress

public AddressInfo getAddress(int index)
Get 'Address' element item by position.

Parameters:
index -
Returns:
item

clearAddresses

public void clearAddresses()
Remove all 'Address' element items.


getTelephones

public java.util.List<TelephoneInfoGroup> getTelephones()
Get the list of 'Telephone' element items. Information about the telephone numbers for this location.

Returns:
list

setTelephones

public void setTelephones(java.util.List<TelephoneInfoGroup> list)
Set the list of 'Telephone' element items. Information about the telephone numbers for this location.

Parameters:
list -

sizeTelephones

public int sizeTelephones()
Get the number of 'Telephone' element items.

Returns:
count

addTelephone

public void addTelephone(TelephoneInfoGroup item)
Add a 'Telephone' element item.

Parameters:
item -

getTelephone

public TelephoneInfoGroup getTelephone(int index)
Get 'Telephone' element item by position.

Parameters:
index -
Returns:
item

clearTelephones

public void clearTelephones()
Remove all 'Telephone' element items.


getAdditionalInfo

public VehicleLocationAdditionalDetails getAdditionalInfo()
Get the 'AdditionalInfo' element value. Supplemental information about the rental facility.

Returns:
value

setAdditionalInfo

public void setAdditionalInfo(VehicleLocationAdditionalDetails additionalInfo)
Set the 'AdditionalInfo' element value. Supplemental information about the rental facility.

Parameters:
additionalInfo -

getAtAirport

public java.lang.Boolean getAtAirport()
Get the 'AtAirport' attribute value. The AtAirport attribute identifies if the associated rental location serves an airport.

Returns:
value

setAtAirport

public void setAtAirport(java.lang.Boolean atAirport)
Set the 'AtAirport' attribute value. The AtAirport attribute identifies if the associated rental location serves an airport.

Parameters:
atAirport -

getCode

public java.lang.String getCode()
Get the 'Code' attribute value. Code used to identify the car rental location.

Returns:
value

setCode

public void setCode(java.lang.String code)
Set the 'Code' attribute value. Code used to identify the car rental location.

Parameters:
code -

getName

public java.lang.String getName()
Get the 'Name' attribute value. Name used to refer to the car rental location.

Returns:
value

setName

public void setName(java.lang.String name)
Set the 'Name' attribute value. Name used to refer to the car rental location.

Parameters:
name -

getCodeContext

public java.lang.String getCodeContext()
Get the 'CodeContext' attribute value. Used to define which list the location code comes from (e.g. IATA, OAG, internal company code).

Returns:
value

setCodeContext

public void setCodeContext(java.lang.String codeContext)
Set the 'CodeContext' attribute value. Used to define which list the location code comes from (e.g. IATA, OAG, internal company code).

Parameters:
codeContext -

getExtendedLocationCode

public java.lang.String getExtendedLocationCode()
Get the 'ExtendedLocationCode' attribute value. Used for extended OAG code in conjunction with the OAG code which is sent in Code.

Returns:
value

setExtendedLocationCode

public void setExtendedLocationCode(java.lang.String extendedLocationCode)
Set the 'ExtendedLocationCode' attribute value. Used for extended OAG code in conjunction with the OAG code which is sent in Code.

Parameters:
extendedLocationCode -

getAssocAirportLocList

public java.lang.String getAssocAirportLocList()
Get the 'AssocAirportLocList' attribute value. Additional airport location codes associated with the primary airport.

Returns:
value

setAssocAirportLocList

public void setAssocAirportLocList(java.lang.String assocAirportLocList)
Set the 'AssocAirportLocList' attribute value. Additional airport location codes associated with the primary airport.

Parameters:
assocAirportLocList -