org.ota.cruise
Class CategoryAvailRS.FareOption.CategoryOption

java.lang.Object
  extended by org.ota.cruise.CategoryAvailRS.FareOption.CategoryOption
Enclosing class:
CategoryAvailRS.FareOption

public static class CategoryAvailRS.FareOption.CategoryOption
extends java.lang.Object

Contains available category information. Information relates to occupancy, category location on the ship, the proposed price and upgrade if available. 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" type="ns:CategoryOptionType" name="CategoryOption" maxOccurs="40"/>
 
 <xs:complexType xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="CategoryOptionType">
   <xs:sequence>
     <xs:element name="PriceInfos" minOccurs="0">
       <!-- Reference to inner class PriceInfos -->
     </xs:element>
     <xs:element name="Dining" minOccurs="0" maxOccurs="8">
       <!-- Reference to inner class Dining -->
     </xs:element>
   </xs:sequence>
   <xs:attributeGroup ref="ns:FareGroup"/>
   <xs:attribute type="xs:string" use="optional" name="Status"/>
   <xs:attribute type="xs:boolean" use="optional" name="HeldIndicator"/>
   <xs:attribute type="ns:CategoryLocationType" use="optional" name="CategoryLocation"/>
   <xs:attribute type="xs:int" use="optional" name="MaxOccupancy"/>
   <xs:attribute type="xs:string" use="optional" name="ListOfCategoryQualifierCodes"/>
   <xs:attributeGroup ref="ns:CruiseCategoryGroup"/>
   <xs:attribute type="xs:int" use="optional" name="AvailableGroupAllocationQty"/>
 </xs:complexType>
 


Nested Class Summary
static class CategoryAvailRS.FareOption.CategoryOption.Dining
          The status per dining seating.
static class CategoryAvailRS.FareOption.CategoryOption.PriceInfos
          Collection of price infos.
 
Constructor Summary
CategoryAvailRS.FareOption.CategoryOption()
           
 
Method Summary
 void addDining(CategoryAvailRS.FareOption.CategoryOption.Dining item)
          Add a 'Dining' element item.
 void clearDinings()
          Remove all 'Dining' element items.
 java.lang.Integer getAvailableGroupAllocationQty()
          Get the 'AvailableGroupAllocationQty' attribute value.
 CategoryLocation getCategoryLocation()
          Get the 'CategoryLocation' attribute value.
 CruiseCategoryGroup getCruiseCategoryGroup()
          Get the 'CruiseCategoryGroup' attributeGroup value.
 CategoryAvailRS.FareOption.CategoryOption.Dining getDining(int index)
          Get 'Dining' element item by position.
 java.util.List<CategoryAvailRS.FareOption.CategoryOption.Dining> getDinings()
          Get the list of 'Dining' element items.
 FareGroup getFareGroup()
          Get the 'FareGroup' attributeGroup value.
 java.lang.Boolean getHeldIndicator()
          Get the 'HeldIndicator' attribute value.
 java.lang.String getListOfCategoryQualifierCodes()
          Get the 'ListOfCategoryQualifierCodes' attribute value.
 java.lang.Integer getMaxOccupancy()
          Get the 'MaxOccupancy' attribute value.
 CategoryAvailRS.FareOption.CategoryOption.PriceInfos getPriceInfos()
          Get the 'PriceInfos' element value.
 java.lang.String getStatus()
          Get the 'Status' attribute value.
 void setAvailableGroupAllocationQty(java.lang.Integer availableGroupAllocationQty)
          Set the 'AvailableGroupAllocationQty' attribute value.
 void setCategoryLocation(CategoryLocation categoryLocation)
          Set the 'CategoryLocation' attribute value.
 void setCruiseCategoryGroup(CruiseCategoryGroup cruiseCategoryGroup)
          Set the 'CruiseCategoryGroup' attributeGroup value.
 void setDinings(java.util.List<CategoryAvailRS.FareOption.CategoryOption.Dining> list)
          Set the list of 'Dining' element items.
 void setFareGroup(FareGroup fareGroup)
          Set the 'FareGroup' attributeGroup value.
 void setHeldIndicator(java.lang.Boolean heldIndicator)
          Set the 'HeldIndicator' attribute value.
 void setListOfCategoryQualifierCodes(java.lang.String listOfCategoryQualifierCodes)
          Set the 'ListOfCategoryQualifierCodes' attribute value.
 void setMaxOccupancy(java.lang.Integer maxOccupancy)
          Set the 'MaxOccupancy' attribute value.
 void setPriceInfos(CategoryAvailRS.FareOption.CategoryOption.PriceInfos priceInfos)
          Set the 'PriceInfos' element value.
 void setStatus(java.lang.String status)
          Set the 'Status' attribute value.
 int sizeDinings()
          Get the number of 'Dining' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CategoryAvailRS.FareOption.CategoryOption

public CategoryAvailRS.FareOption.CategoryOption()
Method Detail

getPriceInfos

public CategoryAvailRS.FareOption.CategoryOption.PriceInfos getPriceInfos()
Get the 'PriceInfos' element value. Specifies category option information.

Returns:
value

setPriceInfos

public void setPriceInfos(CategoryAvailRS.FareOption.CategoryOption.PriceInfos priceInfos)
Set the 'PriceInfos' element value. Specifies category option information.

Parameters:
priceInfos -

getDinings

public java.util.List<CategoryAvailRS.FareOption.CategoryOption.Dining> getDinings()
Get the list of 'Dining' element items. Specifies category option information.

Returns:
list

setDinings

public void setDinings(java.util.List<CategoryAvailRS.FareOption.CategoryOption.Dining> list)
Set the list of 'Dining' element items. Specifies category option information.

Parameters:
list -

sizeDinings

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

Returns:
count

addDining

public void addDining(CategoryAvailRS.FareOption.CategoryOption.Dining item)
Add a 'Dining' element item.

Parameters:
item -

getDining

public CategoryAvailRS.FareOption.CategoryOption.Dining getDining(int index)
Get 'Dining' element item by position.

Parameters:
index -
Returns:
item

clearDinings

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


getFareGroup

public FareGroup getFareGroup()
Get the 'FareGroup' attributeGroup value. Specifies the fare code and or group code associated with the category.

Returns:
value

setFareGroup

public void setFareGroup(FareGroup fareGroup)
Set the 'FareGroup' attributeGroup value. Specifies the fare code and or group code associated with the category.

Parameters:
fareGroup -

getStatus

public java.lang.String getStatus()
Get the 'Status' attribute value. Category availability status. Refer to OpenTravel Code table Status (STS).

Returns:
value

setStatus

public void setStatus(java.lang.String status)
Set the 'Status' attribute value. Category availability status. Refer to OpenTravel Code table Status (STS).

Parameters:
status -

getHeldIndicator

public java.lang.Boolean getHeldIndicator()
Get the 'HeldIndicator' attribute value. When true, all cabins in this category are currently being held.

Returns:
value

setHeldIndicator

public void setHeldIndicator(java.lang.Boolean heldIndicator)
Set the 'HeldIndicator' attribute value. When true, all cabins in this category are currently being held.

Parameters:
heldIndicator -

getCategoryLocation

public CategoryLocation getCategoryLocation()
Get the 'CategoryLocation' attribute value. Category location in the ship. I : Inside O : Outside

Returns:
value

setCategoryLocation

public void setCategoryLocation(CategoryLocation categoryLocation)
Set the 'CategoryLocation' attribute value. Category location in the ship. I : Inside O : Outside

Parameters:
categoryLocation -

getMaxOccupancy

public java.lang.Integer getMaxOccupancy()
Get the 'MaxOccupancy' attribute value. Maximum number of guest per cabin.

Returns:
value

setMaxOccupancy

public void setMaxOccupancy(java.lang.Integer maxOccupancy)
Set the 'MaxOccupancy' attribute value. Maximum number of guest per cabin.

Parameters:
maxOccupancy -

getListOfCategoryQualifierCodes

public java.lang.String getListOfCategoryQualifierCodes()
Get the 'ListOfCategoryQualifierCodes' attribute value. Contains additional category information. Refer to OpenTravel Code List Cabin Filters (CBF).

Returns:
value

setListOfCategoryQualifierCodes

public void setListOfCategoryQualifierCodes(java.lang.String listOfCategoryQualifierCodes)
Set the 'ListOfCategoryQualifierCodes' attribute value. Contains additional category information. Refer to OpenTravel Code List Cabin Filters (CBF).

Parameters:
listOfCategoryQualifierCodes -

getCruiseCategoryGroup

public CruiseCategoryGroup getCruiseCategoryGroup()
Get the 'CruiseCategoryGroup' attributeGroup value. Specifies category code information.

Returns:
value

setCruiseCategoryGroup

public void setCruiseCategoryGroup(CruiseCategoryGroup cruiseCategoryGroup)
Set the 'CruiseCategoryGroup' attributeGroup value. Specifies category code information.

Parameters:
cruiseCategoryGroup -

getAvailableGroupAllocationQty

public java.lang.Integer getAvailableGroupAllocationQty()
Get the 'AvailableGroupAllocationQty' attribute value. Number of remaining cabins allocated to the group.

Returns:
value

setAvailableGroupAllocationQty

public void setAvailableGroupAllocationQty(java.lang.Integer availableGroupAllocationQty)
Set the 'AvailableGroupAllocationQty' attribute value. Number of remaining cabins allocated to the group.

Parameters:
availableGroupAllocationQty -