org.ota.cruise
Class PkgAvailRQ

java.lang.Object
  extended by org.ota.cruise.PkgAvailRQ

public class PkgAvailRQ
extends java.lang.Object

The package availability request message handles pre, post, and inclusive package availability requests for a given sailing. 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_CruisePkgAvailRQ">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:POS_Type" name="POS"/>
       <xs:element name="GuestInfos" minOccurs="0">
         <!-- Reference to inner class GuestInfos -->
       </xs:element>
       <xs:element name="GuestCounts" minOccurs="0">
         <!-- Reference to inner class GuestCounts -->
       </xs:element>
       <xs:element type="ns:SailingCategoryInfoType" name="SailingInfo" minOccurs="0"/>
       <xs:element type="ns:CruisePackageType" name="PackageOption" maxOccurs="8"/>
       <xs:element type="ns:SearchQualifierType" name="SearchQualifiers" minOccurs="0"/>
       <xs:element type="ns:ReservationID_Type" name="ReservationID" minOccurs="0"/>
     </xs:sequence>
     <xs:attributeGroup ref="ns:OTA_PayloadStdAttributes"/>
     <xs:attributeGroup ref="ns:ResponseGroup"/>
   </xs:complexType>
 </xs:element>
 


Nested Class Summary
static class PkgAvailRQ.GuestCounts
          Specifies guest quantity and guest types.
static class PkgAvailRQ.GuestInfos
          Collection of guest information.
 
Constructor Summary
PkgAvailRQ()
           
 
Method Summary
 void addPackageOption(CruisePackage item)
          Add a 'PackageOption' element item.
 void clearPackageOptions()
          Remove all 'PackageOption' element items.
 PkgAvailRQ.GuestCounts getGuestCounts()
          Get the 'GuestCounts' element value.
 PkgAvailRQ.GuestInfos getGuestInfos()
          Get the 'GuestInfos' element value.
 OTAPayloadStdAttributes getOTAPayloadStdAttributes()
          Get the 'OTA_PayloadStdAttributes' attributeGroup value.
 CruisePackage getPackageOption(int index)
          Get 'PackageOption' element item by position.
 java.util.List<CruisePackage> getPackageOptions()
          Get the list of 'PackageOption' element items.
 POS getPOS()
          Get the 'POS' element value.
 ReservationID getReservationID()
          Get the 'ReservationID' element value.
 ResponseGroup getResponseGroup()
          Get the 'ResponseGroup' attributeGroup value.
 SailingCategoryInfo getSailingInfo()
          Get the 'SailingInfo' element value.
 SearchQualifier getSearchQualifiers()
          Get the 'SearchQualifiers' element value.
 void setGuestCounts(PkgAvailRQ.GuestCounts guestCounts)
          Set the 'GuestCounts' element value.
 void setGuestInfos(PkgAvailRQ.GuestInfos guestInfos)
          Set the 'GuestInfos' element value.
 void setOTAPayloadStdAttributes(OTAPayloadStdAttributes OTAPayloadStdAttributes)
          Set the 'OTA_PayloadStdAttributes' attributeGroup value.
 void setPackageOptions(java.util.List<CruisePackage> list)
          Set the list of 'PackageOption' element items.
 void setPOS(POS POS)
          Set the 'POS' element value.
 void setReservationID(ReservationID reservationID)
          Set the 'ReservationID' element value.
 void setResponseGroup(ResponseGroup responseGroup)
          Set the 'ResponseGroup' attributeGroup value.
 void setSailingInfo(SailingCategoryInfo sailingInfo)
          Set the 'SailingInfo' element value.
 void setSearchQualifiers(SearchQualifier searchQualifiers)
          Set the 'SearchQualifiers' element value.
 int sizePackageOptions()
          Get the number of 'PackageOption' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PkgAvailRQ

public PkgAvailRQ()
Method Detail

getPOS

public POS getPOS()
Get the 'POS' element value. Point of sale object.

Returns:
value

setPOS

public void setPOS(POS POS)
Set the 'POS' element value. Point of sale object.

Parameters:
POS -

getGuestInfos

public PkgAvailRQ.GuestInfos getGuestInfos()
Get the 'GuestInfos' element value.

Returns:
value

setGuestInfos

public void setGuestInfos(PkgAvailRQ.GuestInfos guestInfos)
Set the 'GuestInfos' element value.

Parameters:
guestInfos -

getGuestCounts

public PkgAvailRQ.GuestCounts getGuestCounts()
Get the 'GuestCounts' element value.

Returns:
value

setGuestCounts

public void setGuestCounts(PkgAvailRQ.GuestCounts guestCounts)
Set the 'GuestCounts' element value.

Parameters:
guestCounts -

getSailingInfo

public SailingCategoryInfo getSailingInfo()
Get the 'SailingInfo' element value. Contains information related to the selected sailing.

Returns:
value

setSailingInfo

public void setSailingInfo(SailingCategoryInfo sailingInfo)
Set the 'SailingInfo' element value. Contains information related to the selected sailing.

Parameters:
sailingInfo -

getPackageOptions

public java.util.List<CruisePackage> getPackageOptions()
Get the list of 'PackageOption' element items. Specifies the type of package options of interest.

Returns:
list

setPackageOptions

public void setPackageOptions(java.util.List<CruisePackage> list)
Set the list of 'PackageOption' element items. Specifies the type of package options of interest.

Parameters:
list -

sizePackageOptions

public int sizePackageOptions()
Get the number of 'PackageOption' element items.

Returns:
count

addPackageOption

public void addPackageOption(CruisePackage item)
Add a 'PackageOption' element item.

Parameters:
item -

getPackageOption

public CruisePackage getPackageOption(int index)
Get 'PackageOption' element item by position.

Parameters:
index -
Returns:
item

clearPackageOptions

public void clearPackageOptions()
Remove all 'PackageOption' element items.


getSearchQualifiers

public SearchQualifier getSearchQualifiers()
Get the 'SearchQualifiers' element value. Used to further qualify the package availability search.

Returns:
value

setSearchQualifiers

public void setSearchQualifiers(SearchQualifier searchQualifiers)
Set the 'SearchQualifiers' element value. Used to further qualify the package availability search.

Parameters:
searchQualifiers -

getReservationID

public ReservationID getReservationID()
Get the 'ReservationID' element value. A reference to a specific reservation which may limit the available packages.

Returns:
value

setReservationID

public void setReservationID(ReservationID reservationID)
Set the 'ReservationID' element value. A reference to a specific reservation which may limit the available packages.

Parameters:
reservationID -

getOTAPayloadStdAttributes

public OTAPayloadStdAttributes getOTAPayloadStdAttributes()
Get the 'OTA_PayloadStdAttributes' attributeGroup value. 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 standard attributes that appear on the root element for all OpenTravel Messages.

Parameters:
OTAPayloadStdAttributes -

getResponseGroup

public ResponseGroup getResponseGroup()
Get the 'ResponseGroup' attributeGroup value. Provides the echo token to be used to retrieve additional records.

Returns:
value

setResponseGroup

public void setResponseGroup(ResponseGroup responseGroup)
Set the 'ResponseGroup' attributeGroup value. Provides the echo token to be used to retrieve additional records.

Parameters:
responseGroup -