org.ota.vehicle
Class AvailRateRQ

java.lang.Object
  extended by org.ota.vehicle.AvailRateRQ

public class AvailRateRQ
extends java.lang.Object

The root tag of OTA_VehAvailRateRQ contains standard payload attributes found in all OpenTravel payload documents. Because the results of the search message could be quite numerous, the request also has an attribute, MaxResponses, indicating the number of replies requested. The attribute ReqRespVersion is a positive integer value that indicates the version number requested for the response message. 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="OTA_VehAvailRateRQ">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:POS_Type" name="POS"/>
       <xs:element type="ns:UniqueID_Type" name="CustomerID" minOccurs="0" maxOccurs="3"/>
       <xs:element type="ns:VehicleAvailRQCoreType" name="VehAvailRQCore"/>
       <xs:element type="ns:VehicleAvailRQAdditionalInfoType" name="VehAvailRQInfo" minOccurs="0"/>
     </xs:sequence>
     <xs:attributeGroup ref="ns:OTA_PayloadStdAttributes"/>
     <xs:attributeGroup ref="ns:ReqRespVersion"/>
     <xs:attributeGroup ref="ns:MaxResponsesGroup"/>
     <xs:attribute type="xs:boolean" use="optional" name="MaxPerVendorInd"/>
   </xs:complexType>
 </xs:element>
 
 <xs:attributeGroup xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="ReqRespVersion">
   <xs:attribute type="xs:string" use="optional" name="ReqRespVersion"/>
 </xs:attributeGroup>
 
 <xs:attributeGroup xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="MaxResponsesGroup">
   <xs:attribute type="xs:string" use="optional" name="MaxResponses"/>
 </xs:attributeGroup>
 


Constructor Summary
AvailRateRQ()
           
 
Method Summary
 void addCustomerID(UniqueID item)
          Add a 'CustomerID' element item.
 void clearCustomerIDs()
          Remove all 'CustomerID' element items.
 UniqueID getCustomerID(int index)
          Get 'CustomerID' element item by position.
 java.util.List<UniqueID> getCustomerIDs()
          Get the list of 'CustomerID' element items.
 java.lang.Boolean getMaxPerVendorInd()
          Get the 'MaxPerVendorInd' attribute value.
 java.lang.String getMaxResponses()
          Get the 'MaxResponses' attribute value.
 OTAPayloadStdAttributes getOTAPayloadStdAttributes()
          Get the 'OTA_PayloadStdAttributes' attributeGroup value.
 POS getPOS()
          Get the 'POS' element value.
 java.lang.String getReqRespVersion()
          Get the 'ReqRespVersion' attribute value.
 VehicleAvailRQCore getVehAvailRQCore()
          Get the 'VehAvailRQCore' element value.
 VehicleAvailRQAdditionalInfo getVehAvailRQInfo()
          Get the 'VehAvailRQInfo' element value.
 void setCustomerIDs(java.util.List<UniqueID> list)
          Set the list of 'CustomerID' element items.
 void setMaxPerVendorInd(java.lang.Boolean maxPerVendorInd)
          Set the 'MaxPerVendorInd' attribute value.
 void setMaxResponses(java.lang.String maxResponses)
          Set the 'MaxResponses' attribute value.
 void setOTAPayloadStdAttributes(OTAPayloadStdAttributes OTAPayloadStdAttributes)
          Set the 'OTA_PayloadStdAttributes' attributeGroup value.
 void setPOS(POS POS)
          Set the 'POS' element value.
 void setReqRespVersion(java.lang.String reqRespVersion)
          Set the 'ReqRespVersion' attribute value.
 void setVehAvailRQCore(VehicleAvailRQCore vehAvailRQCore)
          Set the 'VehAvailRQCore' element value.
 void setVehAvailRQInfo(VehicleAvailRQAdditionalInfo vehAvailRQInfo)
          Set the 'VehAvailRQInfo' element value.
 int sizeCustomerIDs()
          Get the number of 'CustomerID' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AvailRateRQ

public AvailRateRQ()
Method Detail

getPOS

public POS getPOS()
Get the 'POS' element value. Point of Sale Identification. Identification number of the vendor that has made the vehicle availability request and agency number assigned by IATA, ARC, ESRP or TID.

Returns:
value

setPOS

public void setPOS(POS POS)
Set the 'POS' element value. Point of Sale Identification. Identification number of the vendor that has made the vehicle availability request and agency number assigned by IATA, ARC, ESRP or TID.

Parameters:
POS -

getCustomerIDs

public java.util.List<UniqueID> getCustomerIDs()
Get the list of 'CustomerID' element items. The identification of the customer for whom availability is being requested. This is different than the customer's loyalty number.

Returns:
list

setCustomerIDs

public void setCustomerIDs(java.util.List<UniqueID> list)
Set the list of 'CustomerID' element items. The identification of the customer for whom availability is being requested. This is different than the customer's loyalty number.

Parameters:
list -

sizeCustomerIDs

public int sizeCustomerIDs()
Get the number of 'CustomerID' element items.

Returns:
count

addCustomerID

public void addCustomerID(UniqueID item)
Add a 'CustomerID' element item.

Parameters:
item -

getCustomerID

public UniqueID getCustomerID(int index)
Get 'CustomerID' element item by position.

Parameters:
index -
Returns:
item

clearCustomerIDs

public void clearCustomerIDs()
Remove all 'CustomerID' element items.


getVehAvailRQCore

public VehicleAvailRQCore getVehAvailRQCore()
Get the 'VehAvailRQCore' element value. Identifies the common, or core, information associated with the request for availability of a rental vehicle.

Returns:
value

setVehAvailRQCore

public void setVehAvailRQCore(VehicleAvailRQCore vehAvailRQCore)
Set the 'VehAvailRQCore' element value. Identifies the common, or core, information associated with the request for availability of a rental vehicle.

Parameters:
vehAvailRQCore -

getVehAvailRQInfo

public VehicleAvailRQAdditionalInfo getVehAvailRQInfo()
Get the 'VehAvailRQInfo' element value. Identifies the supplemental information associated with the request for availability of a rental vehicle.

Returns:
value

setVehAvailRQInfo

public void setVehAvailRQInfo(VehicleAvailRQAdditionalInfo vehAvailRQInfo)
Set the 'VehAvailRQInfo' element value. Identifies the supplemental information associated with the request for availability of a rental vehicle.

Parameters:
vehAvailRQInfo -

getOTAPayloadStdAttributes

public OTAPayloadStdAttributes getOTAPayloadStdAttributes()
Get the 'OTA_PayloadStdAttributes' attributeGroup value.

Returns:
value

setOTAPayloadStdAttributes

public void setOTAPayloadStdAttributes(OTAPayloadStdAttributes OTAPayloadStdAttributes)
Set the 'OTA_PayloadStdAttributes' attributeGroup value.

Parameters:
OTAPayloadStdAttributes -

getReqRespVersion

public java.lang.String getReqRespVersion()
Get the 'ReqRespVersion' attribute value. Used to request the version of the payload message desired for the response.

Returns:
value

setReqRespVersion

public void setReqRespVersion(java.lang.String reqRespVersion)
Set the 'ReqRespVersion' attribute value. Used to request the version of the payload message desired for the response.

Parameters:
reqRespVersion -

getMaxResponses

public java.lang.String getMaxResponses()
Get the 'MaxResponses' attribute value. A positive integer value that indicates the maximum number of responses desired in the return.

Returns:
value

setMaxResponses

public void setMaxResponses(java.lang.String maxResponses)
Set the 'MaxResponses' attribute value. A positive integer value that indicates the maximum number of responses desired in the return.

Parameters:
maxResponses -

getMaxPerVendorInd

public java.lang.Boolean getMaxPerVendorInd()
Get the 'MaxPerVendorInd' attribute value. When true, max responses is per vendor.

Returns:
value

setMaxPerVendorInd

public void setMaxPerVendorInd(java.lang.Boolean maxPerVendorInd)
Set the 'MaxPerVendorInd' attribute value. When true, max responses is per vendor.

Parameters:
maxPerVendorInd -