org.ota.tour
Class TourInformation.Category

java.lang.Object
  extended by org.ota.tour.TourInformation.Category
Enclosing class:
TourInformation

public static class TourInformation.Category
extends java.lang.Object

Provides information on a specific aspect of a 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="Category" minOccurs="0" maxOccurs="5">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="CategoryItem" maxOccurs="unbounded">
         <!-- 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 TourInformation.Category.CategoryItem
          Identifies an item for the specified category.
static class TourInformation.Category.Type
          Schema fragment(s) for this class:
 
Constructor Summary
TourInformation.Category()
           
 
Method Summary
 void addCategoryItem(TourInformation.Category.CategoryItem item)
          Add a 'CategoryItem' element item.
 void clearCategoryItems()
          Remove all 'CategoryItem' element items.
 TourInformation.Category.CategoryItem getCategoryItem(int index)
          Get 'CategoryItem' element item by position.
 java.util.List<TourInformation.Category.CategoryItem> getCategoryItems()
          Get the list of 'CategoryItem' element items.
 TourInformation.Category.Type getType()
          Get the 'Type' attribute value.
 void setCategoryItems(java.util.List<TourInformation.Category.CategoryItem> list)
          Set the list of 'CategoryItem' element items.
 void setType(TourInformation.Category.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

TourInformation.Category

public TourInformation.Category()
Method Detail

getCategoryItems

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

Returns:
list

setCategoryItems

public void setCategoryItems(java.util.List<TourInformation.Category.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(TourInformation.Category.CategoryItem item)
Add a 'CategoryItem' element item.

Parameters:
item -

getCategoryItem

public TourInformation.Category.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 TourInformation.Category.Type getType()
Get the 'Type' attribute value. Specifies the type of information in the CategoryItem.

Returns:
value

setType

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

Parameters:
type -