org.ota.cruise
Class CategoryAvailRS.FareOption

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

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

Fare and associated categories information. 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="FareOption" minOccurs="0" maxOccurs="5">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="CategoryOptions">
         <xs:complexType>
           <xs:sequence>
             <xs:element type="ns:CategoryOptionType" name="CategoryOption" maxOccurs="40">
               <!-- Reference to inner class CategoryOption -->
             </xs:element>
           </xs:sequence>
         </xs:complexType>
       </xs:element>
     </xs:sequence>
     <xs:attributeGroup ref="ns:FareGroup"/>
   </xs:complexType>
 </xs:element>
 


Nested Class Summary
static class CategoryAvailRS.FareOption.CategoryOption
          Contains available category information.
 
Constructor Summary
CategoryAvailRS.FareOption()
           
 
Method Summary
 void addCategoryOption(CategoryAvailRS.FareOption.CategoryOption item)
          Add a 'CategoryOption' element item.
 void clearCategoryOptions()
          Remove all 'CategoryOption' element items.
 CategoryAvailRS.FareOption.CategoryOption getCategoryOption(int index)
          Get 'CategoryOption' element item by position.
 java.util.List<CategoryAvailRS.FareOption.CategoryOption> getCategoryOptions()
          Get the list of 'CategoryOption' element items.
 FareGroup getFareGroup()
          Get the 'FareGroup' attributeGroup value.
 void setCategoryOptions(java.util.List<CategoryAvailRS.FareOption.CategoryOption> list)
          Set the list of 'CategoryOption' element items.
 void setFareGroup(FareGroup fareGroup)
          Set the 'FareGroup' attributeGroup value.
 int sizeCategoryOptions()
          Get the number of 'CategoryOption' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CategoryAvailRS.FareOption

public CategoryAvailRS.FareOption()
Method Detail

getCategoryOptions

public java.util.List<CategoryAvailRS.FareOption.CategoryOption> getCategoryOptions()
Get the list of 'CategoryOption' element items. Contains the different categories associated to the fare code which is part of the fare option.

Returns:
list

setCategoryOptions

public void setCategoryOptions(java.util.List<CategoryAvailRS.FareOption.CategoryOption> list)
Set the list of 'CategoryOption' element items. Contains the different categories associated to the fare code which is part of the fare option.

Parameters:
list -

sizeCategoryOptions

public int sizeCategoryOptions()
Get the number of 'CategoryOption' element items.

Returns:
count

addCategoryOption

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

Parameters:
item -

getCategoryOption

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

Parameters:
index -
Returns:
item

clearCategoryOptions

public void clearCategoryOptions()
Remove all 'CategoryOption' element items.


getFareGroup

public FareGroup getFareGroup()
Get the 'FareGroup' attributeGroup value.

Returns:
value

setFareGroup

public void setFareGroup(FareGroup fareGroup)
Set the 'FareGroup' attributeGroup value.

Parameters:
fareGroup -