org.ota.cruise
Class CabinHoldRQ

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

public class CabinHoldRQ
extends java.lang.Object

The Cabin Hold Request message requests up to four cabins to be held on up to three sailings specific Mode of Transportation/GatewayCity pair and currency and for a selected fare/category pair. Optional request information can include: - Guest city - Inclusive package 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_CruiseCabinHoldRQ">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:POS_Type" name="POS"/>
       <xs:element name="GuestCounts" minOccurs="0">
         <!-- Reference to inner class GuestCounts -->
       </xs:element>
       <xs:element name="SelectedSailing" maxOccurs="3">
         <!-- Reference to inner class SelectedSailing -->
       </xs:element>
       <xs:element type="ns:GuestType" name="Guest" minOccurs="0" maxOccurs="9"/>
       <xs:element name="Currency" minOccurs="0">
         <xs:complexType>
           <xs:attributeGroup ref="ns:CurrencyCodeGroup"/>
         </xs:complexType>
       </xs:element>
       <xs:element name="SearchQualifiers" minOccurs="0">
         <!-- Reference to inner class SearchQualifiers -->
       </xs:element>
       <xs:element ref="ns:TPA_Extensions" minOccurs="0"/>
     </xs:sequence>
     <xs:attributeGroup ref="ns:OTA_PayloadStdAttributes"/>
   </xs:complexType>
 </xs:element>
 
 <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 CabinHoldRQ.GuestCounts
          Specifies guest quantity and guest types.
static class CabinHoldRQ.SearchQualifiers
          In this message Past Passenger Number and Residency can used to hold the Cabin.
static class CabinHoldRQ.SelectedSailing
          Contains information related to the selected sailing.
 
Constructor Summary
CabinHoldRQ()
           
 
Method Summary
 void addGuest(Guest item)
          Add a 'Guest' element item.
 void addSelectedSailing(CabinHoldRQ.SelectedSailing item)
          Add a 'SelectedSailing' element item.
 void clearGuests()
          Remove all 'Guest' element items.
 void clearSelectedSailings()
          Remove all 'SelectedSailing' element items.
 CurrencyCodeGroup getCurrency()
          Get the 'CurrencyCodeGroup' attributeGroup value.
 Guest getGuest(int index)
          Get 'Guest' element item by position.
 CabinHoldRQ.GuestCounts getGuestCounts()
          Get the 'GuestCounts' element value.
 java.util.List<Guest> getGuests()
          Get the list of 'Guest' element items.
 OTAPayloadStdAttributes getOTAPayloadStdAttributes()
          Get the 'OTA_PayloadStdAttributes' attributeGroup value.
 POS getPOS()
          Get the 'POS' element value.
 CabinHoldRQ.SearchQualifiers getSearchQualifiers()
          Get the 'SearchQualifiers' element value.
 CabinHoldRQ.SelectedSailing getSelectedSailing(int index)
          Get 'SelectedSailing' element item by position.
 java.util.List<CabinHoldRQ.SelectedSailing> getSelectedSailings()
          Get the list of 'SelectedSailing' element items.
 TPAExtensions getTPAExtensions()
          Get the 'TPA_Extensions' element value.
 void setCurrency(CurrencyCodeGroup currency)
          Set the 'CurrencyCodeGroup' attributeGroup value.
 void setGuestCounts(CabinHoldRQ.GuestCounts guestCounts)
          Set the 'GuestCounts' element value.
 void setGuests(java.util.List<Guest> list)
          Set the list of 'Guest' element items.
 void setOTAPayloadStdAttributes(OTAPayloadStdAttributes OTAPayloadStdAttributes)
          Set the 'OTA_PayloadStdAttributes' attributeGroup value.
 void setPOS(POS POS)
          Set the 'POS' element value.
 void setSearchQualifiers(CabinHoldRQ.SearchQualifiers searchQualifiers)
          Set the 'SearchQualifiers' element value.
 void setSelectedSailings(java.util.List<CabinHoldRQ.SelectedSailing> list)
          Set the list of 'SelectedSailing' element items.
 void setTPAExtensions(TPAExtensions TPAExtensions)
          Set the 'TPA_Extensions' element value.
 int sizeGuests()
          Get the number of 'Guest' element items.
 int sizeSelectedSailings()
          Get the number of 'SelectedSailing' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CabinHoldRQ

public CabinHoldRQ()
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 -

getGuestCounts

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

Returns:
value

setGuestCounts

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

Parameters:
guestCounts -

getSelectedSailings

public java.util.List<CabinHoldRQ.SelectedSailing> getSelectedSailings()
Get the list of 'SelectedSailing' element items.

Returns:
list

setSelectedSailings

public void setSelectedSailings(java.util.List<CabinHoldRQ.SelectedSailing> list)
Set the list of 'SelectedSailing' element items.

Parameters:
list -

sizeSelectedSailings

public int sizeSelectedSailings()
Get the number of 'SelectedSailing' element items.

Returns:
count

addSelectedSailing

public void addSelectedSailing(CabinHoldRQ.SelectedSailing item)
Add a 'SelectedSailing' element item.

Parameters:
item -

getSelectedSailing

public CabinHoldRQ.SelectedSailing getSelectedSailing(int index)
Get 'SelectedSailing' element item by position.

Parameters:
index -
Returns:
item

clearSelectedSailings

public void clearSelectedSailings()
Remove all 'SelectedSailing' element items.


getGuests

public java.util.List<Guest> getGuests()
Get the list of 'Guest' element items. Selected guest mode of transportation available for current sailing and current fares.

Returns:
list

setGuests

public void setGuests(java.util.List<Guest> list)
Set the list of 'Guest' element items. Selected guest mode of transportation available for current sailing and current fares.

Parameters:
list -

sizeGuests

public int sizeGuests()
Get the number of 'Guest' element items.

Returns:
count

addGuest

public void addGuest(Guest item)
Add a 'Guest' element item.

Parameters:
item -

getGuest

public Guest getGuest(int index)
Get 'Guest' element item by position.

Parameters:
index -
Returns:
item

clearGuests

public void clearGuests()
Remove all 'Guest' element items.


getCurrency

public CurrencyCodeGroup getCurrency()
Get the 'CurrencyCodeGroup' attributeGroup value. Currency in which the fare will be returned.

Returns:
value

setCurrency

public void setCurrency(CurrencyCodeGroup currency)
Set the 'CurrencyCodeGroup' attributeGroup value. Currency in which the fare will be returned.

Parameters:
currency -

getSearchQualifiers

public CabinHoldRQ.SearchQualifiers getSearchQualifiers()
Get the 'SearchQualifiers' element value.

Returns:
value

setSearchQualifiers

public void setSearchQualifiers(CabinHoldRQ.SearchQualifiers searchQualifiers)
Set the 'SearchQualifiers' element value.

Parameters:
searchQualifiers -

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 -

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 -