org.ota.cruise
Class Sailing

java.lang.Object
  extended by org.ota.cruise.SailingInfo
      extended by org.ota.cruise.Sailing
Direct Known Subclasses:
SailAvailRS.SailingOptions.SailingOption

public class Sailing
extends SailingInfo

Specifies sailing information. 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="SailingType">
   <xs:complexContent>
     <xs:extension base="ns:SailingInfoType">
       <xs:sequence>
         <xs:element name="Dining" minOccurs="0" maxOccurs="3">
           <!-- Reference to inner class Dining -->
         </xs:element>
         <xs:element type="ns:GuestTransportationType" name="Transportation" minOccurs="0" maxOccurs="5"/>
         <xs:element type="ns:ParagraphType" name="Information" minOccurs="0" maxOccurs="5"/>
       </xs:sequence>
       <xs:attribute type="xs:int" use="optional" name="MaxCabinOccupancy"/>
       <xs:attribute type="ns:CategoryLocationType" use="optional" name="CategoryLocation"/>
     </xs:extension>
   </xs:complexContent>
 </xs:complexType>
 


Nested Class Summary
static class Sailing.Dining
          Identifies the availability of the particular sitting.
 
Nested classes/interfaces inherited from class org.ota.cruise.SailingInfo
SailingInfo.SelectedSailing
 
Constructor Summary
Sailing()
           
 
Method Summary
 void addDining(Sailing.Dining item)
          Add a 'Dining' element item.
 void addInformation(Paragraph item)
          Add a 'Information' element item.
 void addTransportation(GuestTransportation item)
          Add a 'Transportation' element item.
 void clearDinings()
          Remove all 'Dining' element items.
 void clearInformations()
          Remove all 'Information' element items.
 void clearTransportations()
          Remove all 'Transportation' element items.
 CategoryLocation getCategoryLocation()
          Get the 'CategoryLocation' attribute value.
 Sailing.Dining getDining(int index)
          Get 'Dining' element item by position.
 java.util.List<Sailing.Dining> 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.
 java.lang.Integer getMaxCabinOccupancy()
          Get the 'MaxCabinOccupancy' attribute value.
 GuestTransportation getTransportation(int index)
          Get 'Transportation' element item by position.
 java.util.List<GuestTransportation> getTransportations()
          Get the list of 'Transportation' element items.
 void setCategoryLocation(CategoryLocation categoryLocation)
          Set the 'CategoryLocation' attribute value.
 void setDinings(java.util.List<Sailing.Dining> list)
          Set the list of 'Dining' element items.
 void setInformations(java.util.List<Paragraph> list)
          Set the list of 'Information' element items.
 void setMaxCabinOccupancy(java.lang.Integer maxCabinOccupancy)
          Set the 'MaxCabinOccupancy' attribute value.
 void setTransportations(java.util.List<GuestTransportation> list)
          Set the list of 'Transportation' element items.
 int sizeDinings()
          Get the number of 'Dining' element items.
 int sizeInformations()
          Get the number of 'Information' element items.
 int sizeTransportations()
          Get the number of 'Transportation' element items.
 
Methods inherited from class org.ota.cruise.SailingInfo
getCurrency, getInclusivePackageOption, getSelectedSailing, setCurrency, setInclusivePackageOption, setSelectedSailing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sailing

public Sailing()
Method Detail

getDinings

public java.util.List<Sailing.Dining> getDinings()
Get the list of 'Dining' element items.

Returns:
list

setDinings

public void setDinings(java.util.List<Sailing.Dining> list)
Set the list of 'Dining' element items.

Parameters:
list -

sizeDinings

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

Returns:
count

addDining

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

Parameters:
item -

getDining

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

Parameters:
index -
Returns:
item

clearDinings

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


getTransportations

public java.util.List<GuestTransportation> getTransportations()
Get the list of 'Transportation' element items. Specifies the mode of the transportation from the guest location to the cruise port of departure.

Returns:
list

setTransportations

public void setTransportations(java.util.List<GuestTransportation> list)
Set the list of 'Transportation' element items. Specifies the mode of the transportation from the guest location to the cruise port of departure.

Parameters:
list -

sizeTransportations

public int sizeTransportations()
Get the number of 'Transportation' element items.

Returns:
count

addTransportation

public void addTransportation(GuestTransportation item)
Add a 'Transportation' element item.

Parameters:
item -

getTransportation

public GuestTransportation getTransportation(int index)
Get 'Transportation' element item by position.

Parameters:
index -
Returns:
item

clearTransportations

public void clearTransportations()
Remove all 'Transportation' element items.


getInformations

public java.util.List<Paragraph> getInformations()
Get the list of 'Information' element items. Specifies cruise line registration procedures and other free text information. The name attribute is used to define the type of information. Registration procedures are messages that advise customers who are not registered with the cruise line how to do so. Usually non registered customers cannot get access to the cruise line inventory.

Returns:
list

setInformations

public void setInformations(java.util.List<Paragraph> list)
Set the list of 'Information' element items. Specifies cruise line registration procedures and other free text information. The name attribute is used to define the type of information. Registration procedures are messages that advise customers who are not registered with the cruise line how to do so. Usually non registered customers cannot get access to the cruise line inventory.

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.


getMaxCabinOccupancy

public java.lang.Integer getMaxCabinOccupancy()
Get the 'MaxCabinOccupancy' attribute value. Maximum cabin occupancy available on this specific sailing (ship).

Returns:
value

setMaxCabinOccupancy

public void setMaxCabinOccupancy(java.lang.Integer maxCabinOccupancy)
Set the 'MaxCabinOccupancy' attribute value. Maximum cabin occupancy available on this specific sailing (ship).

Parameters:
maxCabinOccupancy -

getCategoryLocation

public CategoryLocation getCategoryLocation()
Get the 'CategoryLocation' attribute value. Specifies the different category locations available on the ship.

Returns:
value

setCategoryLocation

public void setCategoryLocation(CategoryLocation categoryLocation)
Set the 'CategoryLocation' attribute value. Specifies the different category locations available on the ship.

Parameters:
categoryLocation -