org.ota.hotel
Class AvailRS

java.lang.Object
  extended by org.ota.hotel.AvailRS

public class AvailRS
extends java.lang.Object

Returns information about hotel properties that meet the requested criteria, indicating whether the requested service, rate, room stay, etc. is available within the date(s) specified. The response message may include Warnings from business processing rules, or Errors if the request did not succeed. 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_HotelAvailRS">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:POS_Type" name="POS" minOccurs="0"/>
       <xs:choice>
         <xs:sequence>
           <xs:element type="ns:SuccessType" name="Success"/>
           <xs:element type="ns:WarningsType" name="Warnings" minOccurs="0"/>
           <xs:element type="ns:ProfilesType" name="Profiles" minOccurs="0"/>
           <xs:element name="HotelStays" minOccurs="0">
             <!-- Reference to inner class HotelStays -->
           </xs:element>
           <xs:element name="RoomStays" minOccurs="0">
             <!-- Reference to inner class RoomStays -->
           </xs:element>
           <xs:element type="ns:ServicesType" name="Services" minOccurs="0"/>
           <xs:element type="ns:AreasType" name="Areas" minOccurs="0"/>
           <xs:element name="Criteria" minOccurs="0">
             <!-- Reference to inner class Criteria -->
           </xs:element>
           <xs:element name="CurrencyConversions" minOccurs="0">
             <!-- Reference to inner class CurrencyConversions -->
           </xs:element>
           <xs:element ref="ns:TPA_Extensions" minOccurs="0"/>
         </xs:sequence>
         <xs:element type="ns:ErrorsType" name="Errors"/>
       </xs:choice>
     </xs:sequence>
     <xs:attributeGroup ref="ns:OTA_PayloadStdAttributes"/>
     <xs:attribute use="optional" name="SearchCacheLevel">
       <xs:simpleType>
         <!-- Reference to inner class SearchCacheLevel -->
       </xs:simpleType>
     </xs:attribute>
   </xs:complexType>
 </xs:element>
 
 <xs:complexType xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="SuccessType"/>
 
 <xs:element xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" type="ns:TPA_ExtensionsType" name="TPA_Extensions"/>
 


Nested Class Summary
static class AvailRS.Criteria
          Schema fragment(s) for this class:
static class AvailRS.CurrencyConversions
          A collection of currency conversion elements.
static class AvailRS.HotelStays
          Schema fragment(s) for this class:
static class AvailRS.RoomStays
          Schema fragment(s) for this class:
static class AvailRS.SearchCacheLevel
          Schema fragment(s) for this class:
 
Constructor Summary
AvailRS()
           
 
Method Summary
 void clearChoiceSelect()
          Clear the choice selection.
 Areas getAreas()
          Get the 'Areas' element value.
 AvailRS.Criteria getCriteria()
          Get the 'Criteria' element value.
 AvailRS.CurrencyConversions getCurrencyConversions()
          Get the 'CurrencyConversions' element value.
 Errors getErrors()
          Get the 'Errors' element value.
 AvailRS.HotelStays getHotelStays()
          Get the 'HotelStays' element value.
 OTAPayloadStdAttributes getOTAPayloadStdAttributes()
          Get the 'OTA_PayloadStdAttributes' attributeGroup value.
 POS getPOS()
          Get the 'POS' element value.
 Profiles getProfiles()
          Get the 'Profiles' element value.
 AvailRS.RoomStays getRoomStays()
          Get the 'RoomStays' element value.
 AvailRS.SearchCacheLevel getSearchCacheLevel()
          Get the 'SearchCacheLevel' attribute value.
 Services getServices()
          Get the 'Services' element value.
 TPAExtensions getTPAExtensions()
          Get the 'TPA_Extensions' element value.
 Warnings getWarnings()
          Get the 'Warnings' element value.
 boolean ifErrors()
          Check if Errors is current selection for choice.
 boolean ifSuccess()
          Check if Success is current selection for choice.
 void setAreas(Areas areas)
          Set the 'Areas' element value.
 void setCriteria(AvailRS.Criteria criteria)
          Set the 'Criteria' element value.
 void setCurrencyConversions(AvailRS.CurrencyConversions currencyConversions)
          Set the 'CurrencyConversions' element value.
 void setErrors(Errors errors)
          Set the 'Errors' element value.
 void setHotelStays(AvailRS.HotelStays hotelStays)
          Set the 'HotelStays' element value.
 void setOTAPayloadStdAttributes(OTAPayloadStdAttributes OTAPayloadStdAttributes)
          Set the 'OTA_PayloadStdAttributes' attributeGroup value.
 void setPOS(POS POS)
          Set the 'POS' element value.
 void setProfiles(Profiles profiles)
          Set the 'Profiles' element value.
 void setRoomStays(AvailRS.RoomStays roomStays)
          Set the 'RoomStays' element value.
 void setSearchCacheLevel(AvailRS.SearchCacheLevel searchCacheLevel)
          Set the 'SearchCacheLevel' attribute value.
 void setServices(Services services)
          Set the 'Services' element value.
 void setTPAExtensions(TPAExtensions TPAExtensions)
          Set the 'TPA_Extensions' element value.
 void setWarnings(Warnings warnings)
          Set the 'Warnings' element value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AvailRS

public AvailRS()
Method Detail

getPOS

public POS getPOS()
Get the 'POS' element value.

Returns:
value

setPOS

public void setPOS(POS POS)
Set the 'POS' element value.

Parameters:
POS -

clearChoiceSelect

public void clearChoiceSelect()
Clear the choice selection.


ifSuccess

public boolean ifSuccess()
Check if Success is current selection for choice.

Returns:
true if selection, false if not

getWarnings

public Warnings getWarnings()
Get the 'Warnings' element value.

Returns:
value

setWarnings

public void setWarnings(Warnings warnings)
Set the 'Warnings' element value.

Parameters:
warnings -

getProfiles

public Profiles getProfiles()
Get the 'Profiles' element value.

Returns:
value

setProfiles

public void setProfiles(Profiles profiles)
Set the 'Profiles' element value.

Parameters:
profiles -

getHotelStays

public AvailRS.HotelStays getHotelStays()
Get the 'HotelStays' element value.

Returns:
value

setHotelStays

public void setHotelStays(AvailRS.HotelStays hotelStays)
Set the 'HotelStays' element value.

Parameters:
hotelStays -

getRoomStays

public AvailRS.RoomStays getRoomStays()
Get the 'RoomStays' element value.

Returns:
value

setRoomStays

public void setRoomStays(AvailRS.RoomStays roomStays)
Set the 'RoomStays' element value.

Parameters:
roomStays -

getServices

public Services getServices()
Get the 'Services' element value.

Returns:
value

setServices

public void setServices(Services services)
Set the 'Services' element value.

Parameters:
services -

getAreas

public Areas getAreas()
Get the 'Areas' element value.

Returns:
value

setAreas

public void setAreas(Areas areas)
Set the 'Areas' element value.

Parameters:
areas -

getCriteria

public AvailRS.Criteria getCriteria()
Get the 'Criteria' element value.

Returns:
value

setCriteria

public void setCriteria(AvailRS.Criteria criteria)
Set the 'Criteria' element value.

Parameters:
criteria -

getCurrencyConversions

public AvailRS.CurrencyConversions getCurrencyConversions()
Get the 'CurrencyConversions' element value.

Returns:
value

setCurrencyConversions

public void setCurrencyConversions(AvailRS.CurrencyConversions currencyConversions)
Set the 'CurrencyConversions' element value.

Parameters:
currencyConversions -

getTPAExtensions

public TPAExtensions getTPAExtensions()
Get the 'TPA_Extensions' element value. A placeholder in the schema to allow for additional elements and attributes to be included if required, per Trading Partner Agreement (TPA).

Returns:
value

setTPAExtensions

public void setTPAExtensions(TPAExtensions TPAExtensions)
Set the 'TPA_Extensions' element value. A placeholder in the schema to allow for additional elements and attributes to be included if required, per Trading Partner Agreement (TPA).

Parameters:
TPAExtensions -

ifErrors

public boolean ifErrors()
Check if Errors is current selection for choice.

Returns:
true if selection, false if not

getErrors

public Errors getErrors()
Get the 'Errors' element value.

Returns:
value

setErrors

public void setErrors(Errors errors)
Set the 'Errors' element value.

Parameters:
errors -

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 -

getSearchCacheLevel

public AvailRS.SearchCacheLevel getSearchCacheLevel()
Get the 'SearchCacheLevel' attribute value.

Returns:
value

setSearchCacheLevel

public void setSearchCacheLevel(AvailRS.SearchCacheLevel searchCacheLevel)
Set the 'SearchCacheLevel' attribute value.

Parameters:
searchCacheLevel -