org.ota.tour
Class SearchRQ.CategoryPref

java.lang.Object
  extended by org.ota.tour.SearchRQ.CategoryPref
Enclosing class:
SearchRQ

public static class SearchRQ.CategoryPref
extends java.lang.Object

Inidicates a preference for a category of tour. 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="CategoryPref" minOccurs="0" maxOccurs="5">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="CategoryItem" maxOccurs="99">
         <!-- Reference to inner class CategoryItem -->
       </xs:element>
     </xs:sequence>
     <xs:attribute use="optional" name="Type">
       <xs:simpleType>
         <!-- Reference to inner class Type -->
       </xs:simpleType>
     </xs:attribute>
   </xs:complexType>
 </xs:element>
 


Nested Class Summary
static class SearchRQ.CategoryPref.CategoryItem
          Identifies an individual characteristic of a tour.
static class SearchRQ.CategoryPref.Type
          Schema fragment(s) for this class:
 
Constructor Summary
SearchRQ.CategoryPref()
           
 
Method Summary
 void addCategoryItem(SearchRQ.CategoryPref.CategoryItem item)
          Add a 'CategoryItem' element item.
 void clearCategoryItems()
          Remove all 'CategoryItem' element items.
 SearchRQ.CategoryPref.CategoryItem getCategoryItem(int index)
          Get 'CategoryItem' element item by position.
 java.util.List<SearchRQ.CategoryPref.CategoryItem> getCategoryItems()
          Get the list of 'CategoryItem' element items.
 SearchRQ.CategoryPref.Type getType()
          Get the 'Type' attribute value.
 void setCategoryItems(java.util.List<SearchRQ.CategoryPref.CategoryItem> list)
          Set the list of 'CategoryItem' element items.
 void setType(SearchRQ.CategoryPref.Type type)
          Set the 'Type' attribute value.
 int sizeCategoryItems()
          Get the number of 'CategoryItem' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchRQ.CategoryPref

public SearchRQ.CategoryPref()
Method Detail

getCategoryItems

public java.util.List<SearchRQ.CategoryPref.CategoryItem> getCategoryItems()
Get the list of 'CategoryItem' element items.

Returns:
list

setCategoryItems

public void setCategoryItems(java.util.List<SearchRQ.CategoryPref.CategoryItem> list)
Set the list of 'CategoryItem' element items.

Parameters:
list -

sizeCategoryItems

public int sizeCategoryItems()
Get the number of 'CategoryItem' element items.

Returns:
count

addCategoryItem

public void addCategoryItem(SearchRQ.CategoryPref.CategoryItem item)
Add a 'CategoryItem' element item.

Parameters:
item -

getCategoryItem

public SearchRQ.CategoryPref.CategoryItem getCategoryItem(int index)
Get 'CategoryItem' element item by position.

Parameters:
index -
Returns:
item

clearCategoryItems

public void clearCategoryItems()
Remove all 'CategoryItem' element items.


getType

public SearchRQ.CategoryPref.Type getType()
Get the 'Type' attribute value. Specifies the type of information in the CategoryItem.

Returns:
value

setType

public void setType(SearchRQ.CategoryPref.Type type)
Set the 'Type' attribute value. Specifies the type of information in the CategoryItem.

Parameters:
type -