org.ota.cruise
Class DiningAvailRQ

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

public class DiningAvailRQ
extends java.lang.Object

The Dining Availability Request message requests Dining Availability for a given sailing and for selected fares (depending on the cruise line). 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_CruiseDiningAvailRQ">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:POS_Type" name="POS"/>
       <xs:element type="ns:GuestType" name="Guest" minOccurs="0" maxOccurs="9"/>
       <xs:element name="GuestCounts">
         <xs:complexType>
           <xs:sequence>
             <xs:element name="GuestCount" maxOccurs="9">
               <xs:complexType>
                 <xs:attributeGroup ref="ns:TravelerCountGroup"/>
               </xs:complexType>
             </xs:element>
           </xs:sequence>
         </xs:complexType>
       </xs:element>
       <xs:element type="ns:SailingInfoType" name="SailingInfo"/>
       <xs:element name="DiningRoom" minOccurs="0" maxOccurs="unbounded">
         <!-- Reference to inner class DiningRoom -->
       </xs:element>
       <xs:element name="SelectedFare" maxOccurs="5">
         <xs:complexType>
           <xs:attributeGroup ref="ns:FareGroup"/>
         </xs:complexType>
       </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 DiningAvailRQ.DiningRoom
          Specifies the requested dining room options .
 
Constructor Summary
DiningAvailRQ()
           
 
Method Summary
 void addDiningRoom(DiningAvailRQ.DiningRoom item)
          Add a 'DiningRoom' element item.
 void addGuest(Guest item)
          Add a 'Guest' element item.
 void addGuestCount(TravelerCountGroup item)
          Add a 'GuestCount' element item.
 void addSelectedFare(FareGroup item)
          Add a 'SelectedFare' element item.
 void clearDiningRooms()
          Remove all 'DiningRoom' element items.
 void clearGuestCounts()
          Remove all 'GuestCount' element items.
 void clearGuests()
          Remove all 'Guest' element items.
 void clearSelectedFares()
          Remove all 'SelectedFare' element items.
 DiningAvailRQ.DiningRoom getDiningRoom(int index)
          Get 'DiningRoom' element item by position.
 java.util.List<DiningAvailRQ.DiningRoom> getDiningRooms()
          Get the list of 'DiningRoom' element items.
 Guest getGuest(int index)
          Get 'Guest' element item by position.
 TravelerCountGroup getGuestCount(int index)
          Get 'GuestCount' element item by position.
 java.util.List<TravelerCountGroup> getGuestCounts()
          Get the list of 'GuestCount' element items.
 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.
 SailingInfo getSailingInfo()
          Get the 'SailingInfo' element value.
 FareGroup getSelectedFare(int index)
          Get 'SelectedFare' element item by position.
 java.util.List<FareGroup> getSelectedFares()
          Get the list of 'SelectedFare' element items.
 TPAExtensions getTPAExtensions()
          Get the 'TPA_Extensions' element value.
 void setDiningRooms(java.util.List<DiningAvailRQ.DiningRoom> list)
          Set the list of 'DiningRoom' element items.
 void setGuestCounts(java.util.List<TravelerCountGroup> list)
          Set the list of 'GuestCount' element items.
 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 setSailingInfo(SailingInfo sailingInfo)
          Set the 'SailingInfo' element value.
 void setSelectedFares(java.util.List<FareGroup> list)
          Set the list of 'SelectedFare' element items.
 void setTPAExtensions(TPAExtensions TPAExtensions)
          Set the 'TPA_Extensions' element value.
 int sizeDiningRooms()
          Get the number of 'DiningRoom' element items.
 int sizeGuestCounts()
          Get the number of 'GuestCount' element items.
 int sizeGuests()
          Get the number of 'Guest' element items.
 int sizeSelectedFares()
          Get the number of 'SelectedFare' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiningAvailRQ

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

getGuests

public java.util.List<Guest> getGuests()
Get the list of 'Guest' element items. Specifies guest names and/or their transportation.

Returns:
list

setGuests

public void setGuests(java.util.List<Guest> list)
Set the list of 'Guest' element items. Specifies guest names and/or their transportation.

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.


getGuestCounts

public java.util.List<TravelerCountGroup> getGuestCounts()
Get the list of 'GuestCount' element items. Specifies guest quantity and guest types.

Returns:
list

setGuestCounts

public void setGuestCounts(java.util.List<TravelerCountGroup> list)
Set the list of 'GuestCount' element items. Specifies guest quantity and guest types.

Parameters:
list -

sizeGuestCounts

public int sizeGuestCounts()
Get the number of 'GuestCount' element items.

Returns:
count

addGuestCount

public void addGuestCount(TravelerCountGroup item)
Add a 'GuestCount' element item.

Parameters:
item -

getGuestCount

public TravelerCountGroup getGuestCount(int index)
Get 'GuestCount' element item by position.

Parameters:
index -
Returns:
item

clearGuestCounts

public void clearGuestCounts()
Remove all 'GuestCount' element items.


getSailingInfo

public SailingInfo getSailingInfo()
Get the 'SailingInfo' element value. Contains information related to the selected sailing. Typically the selected sailing is one of the sailings returned in the previous sailing availability response.

Returns:
value

setSailingInfo

public void setSailingInfo(SailingInfo sailingInfo)
Set the 'SailingInfo' element value. Contains information related to the selected sailing. Typically the selected sailing is one of the sailings returned in the previous sailing availability response.

Parameters:
sailingInfo -

getDiningRooms

public java.util.List<DiningAvailRQ.DiningRoom> getDiningRooms()
Get the list of 'DiningRoom' element items.

Returns:
list

setDiningRooms

public void setDiningRooms(java.util.List<DiningAvailRQ.DiningRoom> list)
Set the list of 'DiningRoom' element items.

Parameters:
list -

sizeDiningRooms

public int sizeDiningRooms()
Get the number of 'DiningRoom' element items.

Returns:
count

addDiningRoom

public void addDiningRoom(DiningAvailRQ.DiningRoom item)
Add a 'DiningRoom' element item.

Parameters:
item -

getDiningRoom

public DiningAvailRQ.DiningRoom getDiningRoom(int index)
Get 'DiningRoom' element item by position.

Parameters:
index -
Returns:
item

clearDiningRooms

public void clearDiningRooms()
Remove all 'DiningRoom' element items.


getSelectedFares

public java.util.List<FareGroup> getSelectedFares()
Get the list of 'SelectedFare' element items. Specifies the fare code and the group code.

Returns:
list

setSelectedFares

public void setSelectedFares(java.util.List<FareGroup> list)
Set the list of 'SelectedFare' element items. Specifies the fare code and the group code.

Parameters:
list -

sizeSelectedFares

public int sizeSelectedFares()
Get the number of 'SelectedFare' element items.

Returns:
count

addSelectedFare

public void addSelectedFare(FareGroup item)
Add a 'SelectedFare' element item.

Parameters:
item -

getSelectedFare

public FareGroup getSelectedFare(int index)
Get 'SelectedFare' element item by position.

Parameters:
index -
Returns:
item

clearSelectedFares

public void clearSelectedFares()
Remove all 'SelectedFare' element items.


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 -