org.ota.cruise
Class CabinHoldRS.SelectedSailing

java.lang.Object
  extended by org.ota.cruise.CabinHoldRS.SelectedSailing
Enclosing class:
CabinHoldRS

public static class CabinHoldRS.SelectedSailing
extends java.lang.Object

Contains information related to the selected sailing. Typically the selected sailing is one of the sailings returned in the previous sailing availability response. 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="SelectedSailing" maxOccurs="3">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="SelectedCabin" maxOccurs="4">
         <!-- Reference to inner class SelectedCabin -->
       </xs:element>
       <xs:element name="Dining" minOccurs="0" maxOccurs="5">
         <xs:complexType>
           <xs:attributeGroup ref="ns:CruiseDiningGroup"/>
         </xs:complexType>
       </xs:element>
       <xs:element name="Insurance" minOccurs="0" maxOccurs="9">
         <xs:complexType>
           <xs:attributeGroup ref="ns:CruiseInsuranceGroup"/>
         </xs:complexType>
       </xs:element>
       <xs:element type="ns:CruiseProfileType" name="CruiseProfiles" minOccurs="0" maxOccurs="3"/>
       <xs:element type="ns:AcceptedPaymentsType" name="AcceptedPayments" minOccurs="0"/>
       <xs:element type="ns:ParagraphType" name="Information" minOccurs="0" maxOccurs="5"/>
     </xs:sequence>
     <xs:attributeGroup ref="ns:SelectedSailingGroup"/>
   </xs:complexType>
 </xs:element>
 


Nested Class Summary
static class CabinHoldRS.SelectedSailing.SelectedCabin
          Cabins for the given sailing for which a hold has been requested.
 
Constructor Summary
CabinHoldRS.SelectedSailing()
           
 
Method Summary
 void addCruiseProfile(CruiseProfile item)
          Add a 'CruiseProfiles' element item.
 void addDining(CruiseDiningGroup item)
          Add a 'Dining' element item.
 void addInformation(Paragraph item)
          Add a 'Information' element item.
 void addInsurance(CruiseInsuranceGroup item)
          Add a 'Insurance' element item.
 void addSelectedCabin(CabinHoldRS.SelectedSailing.SelectedCabin item)
          Add a 'SelectedCabin' element item.
 void clearCruiseProfiles()
          Remove all 'CruiseProfiles' element items.
 void clearDinings()
          Remove all 'Dining' element items.
 void clearInformations()
          Remove all 'Information' element items.
 void clearInsurances()
          Remove all 'Insurance' element items.
 void clearSelectedCabins()
          Remove all 'SelectedCabin' element items.
 AcceptedPayments getAcceptedPayments()
          Get the 'AcceptedPayments' element value.
 CruiseProfile getCruiseProfile(int index)
          Get 'CruiseProfiles' element item by position.
 java.util.List<CruiseProfile> getCruiseProfiles()
          Get the list of 'CruiseProfiles' element items.
 CruiseDiningGroup getDining(int index)
          Get 'Dining' element item by position.
 java.util.List<CruiseDiningGroup> getDinings()
          Get the list of 'Dining' element items.
 Paragraph getInformation(int index)
          Get 'Information' element item by position.
 java.util.List<Paragraph> getInformations()
          Get the list of 'Information' element items.
 CruiseInsuranceGroup getInsurance(int index)
          Get 'Insurance' element item by position.
 java.util.List<CruiseInsuranceGroup> getInsurances()
          Get the list of 'Insurance' element items.
 CabinHoldRS.SelectedSailing.SelectedCabin getSelectedCabin(int index)
          Get 'SelectedCabin' element item by position.
 java.util.List<CabinHoldRS.SelectedSailing.SelectedCabin> getSelectedCabins()
          Get the list of 'SelectedCabin' element items.
 SelectedSailingGroup getSelectedSailingGroup()
          Get the 'SelectedSailingGroup' attributeGroup value.
 void setAcceptedPayments(AcceptedPayments acceptedPayments)
          Set the 'AcceptedPayments' element value.
 void setCruiseProfiles(java.util.List<CruiseProfile> list)
          Set the list of 'CruiseProfiles' element items.
 void setDinings(java.util.List<CruiseDiningGroup> list)
          Set the list of 'Dining' element items.
 void setInformations(java.util.List<Paragraph> list)
          Set the list of 'Information' element items.
 void setInsurances(java.util.List<CruiseInsuranceGroup> list)
          Set the list of 'Insurance' element items.
 void setSelectedCabins(java.util.List<CabinHoldRS.SelectedSailing.SelectedCabin> list)
          Set the list of 'SelectedCabin' element items.
 void setSelectedSailingGroup(SelectedSailingGroup selectedSailingGroup)
          Set the 'SelectedSailingGroup' attributeGroup value.
 int sizeCruiseProfiles()
          Get the number of 'CruiseProfiles' element items.
 int sizeDinings()
          Get the number of 'Dining' element items.
 int sizeInformations()
          Get the number of 'Information' element items.
 int sizeInsurances()
          Get the number of 'Insurance' element items.
 int sizeSelectedCabins()
          Get the number of 'SelectedCabin' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CabinHoldRS.SelectedSailing

public CabinHoldRS.SelectedSailing()
Method Detail

getSelectedCabins

public java.util.List<CabinHoldRS.SelectedSailing.SelectedCabin> getSelectedCabins()
Get the list of 'SelectedCabin' element items.

Returns:
list

setSelectedCabins

public void setSelectedCabins(java.util.List<CabinHoldRS.SelectedSailing.SelectedCabin> list)
Set the list of 'SelectedCabin' element items.

Parameters:
list -

sizeSelectedCabins

public int sizeSelectedCabins()
Get the number of 'SelectedCabin' element items.

Returns:
count

addSelectedCabin

public void addSelectedCabin(CabinHoldRS.SelectedSailing.SelectedCabin item)
Add a 'SelectedCabin' element item.

Parameters:
item -

getSelectedCabin

public CabinHoldRS.SelectedSailing.SelectedCabin getSelectedCabin(int index)
Get 'SelectedCabin' element item by position.

Parameters:
index -
Returns:
item

clearSelectedCabins

public void clearSelectedCabins()
Remove all 'SelectedCabin' element items.


getDinings

public java.util.List<CruiseDiningGroup> getDinings()
Get the list of 'Dining' element items. A list of dining options with the availability status.

Returns:
list

setDinings

public void setDinings(java.util.List<CruiseDiningGroup> list)
Set the list of 'Dining' element items. A list of dining options with the availability status.

Parameters:
list -

sizeDinings

public int sizeDinings()
Get the number of 'Dining' element items.

Returns:
count

addDining

public void addDining(CruiseDiningGroup item)
Add a 'Dining' element item.

Parameters:
item -

getDining

public CruiseDiningGroup getDining(int index)
Get 'Dining' element item by position.

Parameters:
index -
Returns:
item

clearDinings

public void clearDinings()
Remove all 'Dining' element items.


getInsurances

public java.util.List<CruiseInsuranceGroup> getInsurances()
Get the list of 'Insurance' element items. A list of insurances with the availability status.

Returns:
list

setInsurances

public void setInsurances(java.util.List<CruiseInsuranceGroup> list)
Set the list of 'Insurance' element items. A list of insurances with the availability status.

Parameters:
list -

sizeInsurances

public int sizeInsurances()
Get the number of 'Insurance' element items.

Returns:
count

addInsurance

public void addInsurance(CruiseInsuranceGroup item)
Add a 'Insurance' element item.

Parameters:
item -

getInsurance

public CruiseInsuranceGroup getInsurance(int index)
Get 'Insurance' element item by position.

Parameters:
index -
Returns:
item

clearInsurances

public void clearInsurances()
Remove all 'Insurance' element items.


getCruiseProfiles

public java.util.List<CruiseProfile> getCruiseProfiles()
Get the list of 'CruiseProfiles' element items. Specifies the cruise profile options for this reservation.

Returns:
list

setCruiseProfiles

public void setCruiseProfiles(java.util.List<CruiseProfile> list)
Set the list of 'CruiseProfiles' element items. Specifies the cruise profile options for this reservation.

Parameters:
list -

sizeCruiseProfiles

public int sizeCruiseProfiles()
Get the number of 'CruiseProfiles' element items.

Returns:
count

addCruiseProfile

public void addCruiseProfile(CruiseProfile item)
Add a 'CruiseProfiles' element item.

Parameters:
item -

getCruiseProfile

public CruiseProfile getCruiseProfile(int index)
Get 'CruiseProfiles' element item by position.

Parameters:
index -
Returns:
item

clearCruiseProfiles

public void clearCruiseProfiles()
Remove all 'CruiseProfiles' element items.


getAcceptedPayments

public AcceptedPayments getAcceptedPayments()
Get the 'AcceptedPayments' element value. Specifies the Payment Options Information

Returns:
value

setAcceptedPayments

public void setAcceptedPayments(AcceptedPayments acceptedPayments)
Set the 'AcceptedPayments' element value. Specifies the Payment Options Information

Parameters:
acceptedPayments -

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.


getSelectedSailingGroup

public SelectedSailingGroup getSelectedSailingGroup()
Get the 'SelectedSailingGroup' attributeGroup value.

Returns:
value

setSelectedSailingGroup

public void setSelectedSailingGroup(SelectedSailingGroup selectedSailingGroup)
Set the 'SelectedSailingGroup' attributeGroup value.

Parameters:
selectedSailingGroup -