org.ota.cruise
Class CruiseGuestInfo

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

public class CruiseGuestInfo
extends java.lang.Object

Contains guest information for the specified sailing. Schema fragment(s) for this class:

 <xs:complexType xmlns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="CruiseGuestInfoType">
   <xs:sequence>
     <xs:element type="ReservationID_Type" name="ReservationID" minOccurs="0" maxOccurs="2"/>
     <xs:element name="GuestDetails">
       <xs:complexType>
         <xs:sequence>
           <xs:element type="CruiseGuestDetailType" name="GuestDetail" maxOccurs="9">
             <!-- Reference to inner class GuestDetail -->
           </xs:element>
         </xs:sequence>
       </xs:complexType>
     </xs:element>
     <xs:element name="LinkedBookings" minOccurs="0">
       <!-- Reference to inner class LinkedBookings -->
     </xs:element>
     <xs:element name="PaymentOptions" minOccurs="0">
       <!-- Reference to inner class PaymentOptions -->
     </xs:element>
     <xs:element name="CancellationPenalty" minOccurs="0">
       <!-- Reference to inner class CancellationPenalty -->
     </xs:element>
   </xs:sequence>
 </xs:complexType>
 


Nested Class Summary
static class CruiseGuestInfo.CancellationPenalty
          Penalty information for cancelling a reservation.
static class CruiseGuestInfo.GuestDetail
          Specifies the Guest information Schema fragment(s) for this class:
static class CruiseGuestInfo.LinkedBookings
          Collection of linked bookings.
static class CruiseGuestInfo.PaymentOptions
          Collection of payment choices.
 
Constructor Summary
CruiseGuestInfo()
           
 
Method Summary
 void addGuestDetail(CruiseGuestInfo.GuestDetail item)
          Add a 'GuestDetail' element item.
 void addReservationID(ReservationID item)
          Add a 'ReservationID' element item.
 void clearGuestDetails()
          Remove all 'GuestDetail' element items.
 void clearReservationIDs()
          Remove all 'ReservationID' element items.
 CruiseGuestInfo.CancellationPenalty getCancellationPenalty()
          Get the 'CancellationPenalty' element value.
 CruiseGuestInfo.GuestDetail getGuestDetail(int index)
          Get 'GuestDetail' element item by position.
 java.util.List<CruiseGuestInfo.GuestDetail> getGuestDetails()
          Get the list of 'GuestDetail' element items.
 CruiseGuestInfo.LinkedBookings getLinkedBookings()
          Get the 'LinkedBookings' element value.
 CruiseGuestInfo.PaymentOptions getPaymentOptions()
          Get the 'PaymentOptions' element value.
 ReservationID getReservationID(int index)
          Get 'ReservationID' element item by position.
 java.util.List<ReservationID> getReservationIDs()
          Get the list of 'ReservationID' element items.
 void setCancellationPenalty(CruiseGuestInfo.CancellationPenalty cancellationPenalty)
          Set the 'CancellationPenalty' element value.
 void setGuestDetails(java.util.List<CruiseGuestInfo.GuestDetail> list)
          Set the list of 'GuestDetail' element items.
 void setLinkedBookings(CruiseGuestInfo.LinkedBookings linkedBookings)
          Set the 'LinkedBookings' element value.
 void setPaymentOptions(CruiseGuestInfo.PaymentOptions paymentOptions)
          Set the 'PaymentOptions' element value.
 void setReservationIDs(java.util.List<ReservationID> list)
          Set the list of 'ReservationID' element items.
 int sizeGuestDetails()
          Get the number of 'GuestDetail' element items.
 int sizeReservationIDs()
          Get the number of 'ReservationID' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CruiseGuestInfo

public CruiseGuestInfo()
Method Detail

getReservationIDs

public java.util.List<ReservationID> getReservationIDs()
Get the list of 'ReservationID' element items. Specifies the reservation control information or the guest's booking ID in modification mode (e.g. PNR Record Locator and/or Vendor Confirmation Number).

Returns:
list

setReservationIDs

public void setReservationIDs(java.util.List<ReservationID> list)
Set the list of 'ReservationID' element items. Specifies the reservation control information or the guest's booking ID in modification mode (e.g. PNR Record Locator and/or Vendor Confirmation Number).

Parameters:
list -

sizeReservationIDs

public int sizeReservationIDs()
Get the number of 'ReservationID' element items.

Returns:
count

addReservationID

public void addReservationID(ReservationID item)
Add a 'ReservationID' element item.

Parameters:
item -

getReservationID

public ReservationID getReservationID(int index)
Get 'ReservationID' element item by position.

Parameters:
index -
Returns:
item

clearReservationIDs

public void clearReservationIDs()
Remove all 'ReservationID' element items.


getGuestDetails

public java.util.List<CruiseGuestInfo.GuestDetail> getGuestDetails()
Get the list of 'GuestDetail' element items. Specifies the guests' information.

Returns:
list

setGuestDetails

public void setGuestDetails(java.util.List<CruiseGuestInfo.GuestDetail> list)
Set the list of 'GuestDetail' element items. Specifies the guests' information.

Parameters:
list -

sizeGuestDetails

public int sizeGuestDetails()
Get the number of 'GuestDetail' element items.

Returns:
count

addGuestDetail

public void addGuestDetail(CruiseGuestInfo.GuestDetail item)
Add a 'GuestDetail' element item.

Parameters:
item -

getGuestDetail

public CruiseGuestInfo.GuestDetail getGuestDetail(int index)
Get 'GuestDetail' element item by position.

Parameters:
index -
Returns:
item

clearGuestDetails

public void clearGuestDetails()
Remove all 'GuestDetail' element items.


getLinkedBookings

public CruiseGuestInfo.LinkedBookings getLinkedBookings()
Get the 'LinkedBookings' element value.

Returns:
value

setLinkedBookings

public void setLinkedBookings(CruiseGuestInfo.LinkedBookings linkedBookings)
Set the 'LinkedBookings' element value.

Parameters:
linkedBookings -

getPaymentOptions

public CruiseGuestInfo.PaymentOptions getPaymentOptions()
Get the 'PaymentOptions' element value.

Returns:
value

setPaymentOptions

public void setPaymentOptions(CruiseGuestInfo.PaymentOptions paymentOptions)
Set the 'PaymentOptions' element value.

Parameters:
paymentOptions -

getCancellationPenalty

public CruiseGuestInfo.CancellationPenalty getCancellationPenalty()
Get the 'CancellationPenalty' element value.

Returns:
value

setCancellationPenalty

public void setCancellationPenalty(CruiseGuestInfo.CancellationPenalty cancellationPenalty)
Set the 'CancellationPenalty' element value.

Parameters:
cancellationPenalty -