org.ota.cruise
Class CruiseReservation

java.lang.Object
  extended by org.ota.cruise.CruiseReservation
Direct Known Subclasses:
PNRUpdateNotifRQ

public class CruiseReservation
extends java.lang.Object

Schema fragment(s) for this class:

 <xs:complexType xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="CruiseReservationType">
   <xs:sequence>
     <xs:element type="ns:SailingCategoryInfoType" name="SailingInfo"/>
     <xs:element type="ns:CruiseProfileType" name="SailingProfile" minOccurs="0" maxOccurs="4"/>
     <xs:element type="ns:CruiseGuestInfoType" name="ReservationInfo"/>
     <xs:element name="PaymentsDue" minOccurs="0">
       <!-- Reference to inner class PaymentsDue -->
     </xs:element>
     <xs:element type="ns:ParagraphType" name="Information" minOccurs="0" maxOccurs="5"/>
   </xs:sequence>
 </xs:complexType>
 


Nested Class Summary
static class CruiseReservation.PaymentsDue
          A collection of payments due.
 
Constructor Summary
CruiseReservation()
           
 
Method Summary
 void addInformation(Paragraph item)
          Add a 'Information' element item.
 void addSailingProfile(CruiseProfile item)
          Add a 'SailingProfile' element item.
 void clearInformations()
          Remove all 'Information' element items.
 void clearSailingProfiles()
          Remove all 'SailingProfile' element items.
 Paragraph getInformation(int index)
          Get 'Information' element item by position.
 java.util.List<Paragraph> getInformations()
          Get the list of 'Information' element items.
 CruiseReservation.PaymentsDue getPaymentsDue()
          Get the 'PaymentsDue' element value.
 CruiseGuestInfo getReservationInfo()
          Get the 'ReservationInfo' element value.
 SailingCategoryInfo getSailingInfo()
          Get the 'SailingInfo' element value.
 CruiseProfile getSailingProfile(int index)
          Get 'SailingProfile' element item by position.
 java.util.List<CruiseProfile> getSailingProfiles()
          Get the list of 'SailingProfile' element items.
 void setInformations(java.util.List<Paragraph> list)
          Set the list of 'Information' element items.
 void setPaymentsDue(CruiseReservation.PaymentsDue paymentsDue)
          Set the 'PaymentsDue' element value.
 void setReservationInfo(CruiseGuestInfo reservationInfo)
          Set the 'ReservationInfo' element value.
 void setSailingInfo(SailingCategoryInfo sailingInfo)
          Set the 'SailingInfo' element value.
 void setSailingProfiles(java.util.List<CruiseProfile> list)
          Set the list of 'SailingProfile' element items.
 int sizeInformations()
          Get the number of 'Information' element items.
 int sizeSailingProfiles()
          Get the number of 'SailingProfile' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CruiseReservation

public CruiseReservation()
Method Detail

getSailingInfo

public SailingCategoryInfo getSailingInfo()
Get the 'SailingInfo' element value. Specifies the selected category to book. 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(SailingCategoryInfo sailingInfo)
Set the 'SailingInfo' element value. Specifies the selected category to book. 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 -

getSailingProfiles

public java.util.List<CruiseProfile> getSailingProfiles()
Get the list of 'SailingProfile' element items. Specifies the profile information at the sailing level.

Returns:
list

setSailingProfiles

public void setSailingProfiles(java.util.List<CruiseProfile> list)
Set the list of 'SailingProfile' element items. Specifies the profile information at the sailing level.

Parameters:
list -

sizeSailingProfiles

public int sizeSailingProfiles()
Get the number of 'SailingProfile' element items.

Returns:
count

addSailingProfile

public void addSailingProfile(CruiseProfile item)
Add a 'SailingProfile' element item.

Parameters:
item -

getSailingProfile

public CruiseProfile getSailingProfile(int index)
Get 'SailingProfile' element item by position.

Parameters:
index -
Returns:
item

clearSailingProfiles

public void clearSailingProfiles()
Remove all 'SailingProfile' element items.


getReservationInfo

public CruiseGuestInfo getReservationInfo()
Get the 'ReservationInfo' element value. Specifies reservation and guest information about the booking.

Returns:
value

setReservationInfo

public void setReservationInfo(CruiseGuestInfo reservationInfo)
Set the 'ReservationInfo' element value. Specifies reservation and guest information about the booking.

Parameters:
reservationInfo -

getPaymentsDue

public CruiseReservation.PaymentsDue getPaymentsDue()
Get the 'PaymentsDue' element value.

Returns:
value

setPaymentsDue

public void setPaymentsDue(CruiseReservation.PaymentsDue paymentsDue)
Set the 'PaymentsDue' element value.

Parameters:
paymentsDue -

getInformations

public java.util.List<Paragraph> getInformations()
Get the list of 'Information' element items. Contains information such as advisories or marketing messages returned by the cruise line.

Returns:
list

setInformations

public void setInformations(java.util.List<Paragraph> list)
Set the list of 'Information' element items. Contains information such as advisories or marketing messages returned by the cruise line.

Parameters:
list -

sizeInformations

public int sizeInformations()
Get the number of 'Information' element items.

Returns:
count

addInformation

public void addInformation(Paragraph item)
Add a 'Information' element item.

Parameters:
item -

getInformation

public Paragraph getInformation(int index)
Get 'Information' element item by position.

Parameters:
index -
Returns:
item

clearInformations

public void clearInformations()
Remove all 'Information' element items.