org.ota.dynamicpkg
Class AvailRQ

java.lang.Object
  extended by org.ota.dynamicpkg.AvailRQ

public class AvailRQ
extends java.lang.Object

Requests availability for each of the components of a package reservation. 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_DynamicPkgAvailRQ">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:POS_Type" name="POS" minOccurs="0"/>
       <xs:element name="SearchCriteria">
         <xs:complexType>
           <xs:sequence>
             <xs:element name="PromotionCodes" minOccurs="0">
               <!-- Reference to inner class PromotionCodes -->
             </xs:element>
             <xs:element type="ns:DynamicPkgAirSearchType" name="AirSearch" minOccurs="0" maxOccurs="unbounded"/>
             <xs:element type="ns:DynamicPkgHotelSearchType" name="HotelSearch" minOccurs="0" maxOccurs="unbounded"/>
           </xs:sequence>
         </xs:complexType>
       </xs:element>
       <xs:element type="ns:DynamicPkgType" name="DynamicPackage" minOccurs="0"/>
     </xs:sequence>
     <xs:attributeGroup ref="ns:OTA_PayloadStdAttributes"/>
   </xs:complexType>
 </xs:element>
 


Nested Class Summary
static class AvailRQ.PromotionCodes
          Promotion codes that will be applied at either the package or component level.
 
Constructor Summary
AvailRQ()
           
 
Method Summary
 void addSearchCriteriaAirSearch(DynamicPkgAirSearch item)
          Add a 'AirSearch' element item.
 void addSearchCriteriaHotelSearch(DynamicPkgHotelSearch item)
          Add a 'HotelSearch' element item.
 void clearSearchCriteriaAirSearchs()
          Remove all 'AirSearch' element items.
 void clearSearchCriteriaHotelSearchs()
          Remove all 'HotelSearch' element items.
 DynamicPkg getDynamicPackage()
          Get the 'DynamicPackage' element value.
 OTAPayloadStdAttributes getOTAPayloadStdAttributes()
          Get the 'OTA_PayloadStdAttributes' attributeGroup value.
 POS getPOS()
          Get the 'POS' element value.
 AvailRQ.PromotionCodes getPromotionCodes()
          Get the 'PromotionCodes' element value.
 DynamicPkgAirSearch getSearchCriteriaAirSearch(int index)
          Get 'AirSearch' element item by position.
 java.util.List<DynamicPkgAirSearch> getSearchCriteriaAirSearchs()
          Get the list of 'AirSearch' element items.
 DynamicPkgHotelSearch getSearchCriteriaHotelSearch(int index)
          Get 'HotelSearch' element item by position.
 java.util.List<DynamicPkgHotelSearch> getSearchCriteriaHotelSearchs()
          Get the list of 'HotelSearch' element items.
 void setDynamicPackage(DynamicPkg dynamicPackage)
          Set the 'DynamicPackage' element value.
 void setOTAPayloadStdAttributes(OTAPayloadStdAttributes OTAPayloadStdAttributes)
          Set the 'OTA_PayloadStdAttributes' attributeGroup value.
 void setPOS(POS POS)
          Set the 'POS' element value.
 void setPromotionCodes(AvailRQ.PromotionCodes promotionCodes)
          Set the 'PromotionCodes' element value.
 void setSearchCriteriaAirSearchs(java.util.List<DynamicPkgAirSearch> list)
          Set the list of 'AirSearch' element items.
 void setSearchCriteriaHotelSearchs(java.util.List<DynamicPkgHotelSearch> list)
          Set the list of 'HotelSearch' element items.
 int sizeSearchCriteriaAirSearchs()
          Get the number of 'AirSearch' element items.
 int sizeSearchCriteriaHotelSearchs()
          Get the number of 'HotelSearch' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AvailRQ

public AvailRQ()
Method Detail

getPOS

public POS getPOS()
Get the 'POS' element value. Point of Sale (POS) identifies the party or connection channel making the request.

Returns:
value

setPOS

public void setPOS(POS POS)
Set the 'POS' element value. Point of Sale (POS) identifies the party or connection channel making the request.

Parameters:
POS -

getPromotionCodes

public AvailRQ.PromotionCodes getPromotionCodes()
Get the 'PromotionCodes' element value. Contains the specific search criteria for each desired package component.

Returns:
value

setPromotionCodes

public void setPromotionCodes(AvailRQ.PromotionCodes promotionCodes)
Set the 'PromotionCodes' element value. Contains the specific search criteria for each desired package component.

Parameters:
promotionCodes -

getSearchCriteriaAirSearchs

public java.util.List<DynamicPkgAirSearch> getSearchCriteriaAirSearchs()
Get the list of 'AirSearch' element items. Identifies specific search criteria for air searches.

Returns:
list

setSearchCriteriaAirSearchs

public void setSearchCriteriaAirSearchs(java.util.List<DynamicPkgAirSearch> list)
Set the list of 'AirSearch' element items. Identifies specific search criteria for air searches.

Parameters:
list -

sizeSearchCriteriaAirSearchs

public int sizeSearchCriteriaAirSearchs()
Get the number of 'AirSearch' element items.

Returns:
count

addSearchCriteriaAirSearch

public void addSearchCriteriaAirSearch(DynamicPkgAirSearch item)
Add a 'AirSearch' element item.

Parameters:
item -

getSearchCriteriaAirSearch

public DynamicPkgAirSearch getSearchCriteriaAirSearch(int index)
Get 'AirSearch' element item by position.

Parameters:
index -
Returns:
item

clearSearchCriteriaAirSearchs

public void clearSearchCriteriaAirSearchs()
Remove all 'AirSearch' element items.


getSearchCriteriaHotelSearchs

public java.util.List<DynamicPkgHotelSearch> getSearchCriteriaHotelSearchs()
Get the list of 'HotelSearch' element items. Identifies specific search criteria for hotel searches.

Returns:
list

setSearchCriteriaHotelSearchs

public void setSearchCriteriaHotelSearchs(java.util.List<DynamicPkgHotelSearch> list)
Set the list of 'HotelSearch' element items. Identifies specific search criteria for hotel searches.

Parameters:
list -

sizeSearchCriteriaHotelSearchs

public int sizeSearchCriteriaHotelSearchs()
Get the number of 'HotelSearch' element items.

Returns:
count

addSearchCriteriaHotelSearch

public void addSearchCriteriaHotelSearch(DynamicPkgHotelSearch item)
Add a 'HotelSearch' element item.

Parameters:
item -

getSearchCriteriaHotelSearch

public DynamicPkgHotelSearch getSearchCriteriaHotelSearch(int index)
Get 'HotelSearch' element item by position.

Parameters:
index -
Returns:
item

clearSearchCriteriaHotelSearchs

public void clearSearchCriteriaHotelSearchs()
Remove all 'HotelSearch' element items.


getDynamicPackage

public DynamicPkg getDynamicPackage()
Get the 'DynamicPackage' element value. Contains information about the guests and already reserved portions of the package.

Returns:
value

setDynamicPackage

public void setDynamicPackage(DynamicPkg dynamicPackage)
Set the 'DynamicPackage' element value. Contains information about the guests and already reserved portions of the package.

Parameters:
dynamicPackage -

getOTAPayloadStdAttributes

public OTAPayloadStdAttributes getOTAPayloadStdAttributes()
Get the 'OTA_PayloadStdAttributes' attributeGroup value. The OTA_PayloadStdAttributes defines the standard attributes that appear on the root element for all OpenTravel Messages.

Returns:
value

setOTAPayloadStdAttributes

public void setOTAPayloadStdAttributes(OTAPayloadStdAttributes OTAPayloadStdAttributes)
Set the 'OTA_PayloadStdAttributes' attributeGroup value. The OTA_PayloadStdAttributes defines the standard attributes that appear on the root element for all OpenTravel Messages.

Parameters:
OTAPayloadStdAttributes -