org.ota.pkg
Class PackageResponse.Cautions

java.lang.Object
  extended by org.ota.pkg.PackageResponse.Cautions
Enclosing class:
PackageResponse

public static class PackageResponse.Cautions
extends java.lang.Object

A collection of items of essential information relating to components of a package itinerary. 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="Cautions" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:PkgCautionType" name="Caution" maxOccurs="99"/>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 


Constructor Summary
PackageResponse.Cautions()
           
 
Method Summary
 void addCaution(PkgCaution item)
          Add a 'Caution' element item.
 void clearCautions()
          Remove all 'Caution' element items.
 PkgCaution getCaution(int index)
          Get 'Caution' element item by position.
 java.util.List<PkgCaution> getCautions()
          Get the list of 'Caution' element items.
 void setCautions(java.util.List<PkgCaution> list)
          Set the list of 'Caution' element items.
 int sizeCautions()
          Get the number of 'Caution' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PackageResponse.Cautions

public PackageResponse.Cautions()
Method Detail

getCautions

public java.util.List<PkgCaution> getCautions()
Get the list of 'Caution' element items. Provides information regarding a package component which could affect a customer's decision to book.

Returns:
list

setCautions

public void setCautions(java.util.List<PkgCaution> list)
Set the list of 'Caution' element items. Provides information regarding a package component which could affect a customer's decision to book.

Parameters:
list -

sizeCautions

public int sizeCautions()
Get the number of 'Caution' element items.

Returns:
count

addCaution

public void addCaution(PkgCaution item)
Add a 'Caution' element item.

Parameters:
item -

getCaution

public PkgCaution getCaution(int index)
Get 'Caution' element item by position.

Parameters:
index -
Returns:
item

clearCautions

public void clearCautions()
Remove all 'Caution' element items.