org.ota.dynamicpkg
Class DynamicPkgSearch

java.lang.Object
  extended by org.ota.dynamicpkg.DynamicPkgSearch
Direct Known Subclasses:
DynamicPkgAirSearch, DynamicPkgHotelSearch

public abstract class DynamicPkgSearch
extends java.lang.Object

Basis for all component search types. Schema fragment(s) for this class:

 <xs:complexType xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" abstract="true" name="DynamicPkgSearchType">
   <xs:sequence>
     <xs:element name="PromotionInfo" minOccurs="0" maxOccurs="5">
       <!-- Reference to inner class PromotionInfo -->
     </xs:element>
   </xs:sequence>
   <xs:attribute type="xs:string" use="optional" name="MaxResponses"/>
   <xs:attribute type="xs:string" use="optional" name="SequenceNumber"/>
 </xs:complexType>
 


Nested Class Summary
static class DynamicPkgSearch.PromotionInfo
          Promotion code pertaining to this portion of the search.
 
Constructor Summary
DynamicPkgSearch()
           
 
Method Summary
 void addPromotionInfo(DynamicPkgSearch.PromotionInfo item)
          Add a 'PromotionInfo' element item.
 void clearPromotionInfos()
          Remove all 'PromotionInfo' element items.
 java.lang.String getMaxResponses()
          Get the 'MaxResponses' attribute value.
 DynamicPkgSearch.PromotionInfo getPromotionInfo(int index)
          Get 'PromotionInfo' element item by position.
 java.util.List<DynamicPkgSearch.PromotionInfo> getPromotionInfos()
          Get the list of 'PromotionInfo' element items.
 java.lang.String getSequenceNumber()
          Get the 'SequenceNumber' attribute value.
 void setMaxResponses(java.lang.String maxResponses)
          Set the 'MaxResponses' attribute value.
 void setPromotionInfos(java.util.List<DynamicPkgSearch.PromotionInfo> list)
          Set the list of 'PromotionInfo' element items.
 void setSequenceNumber(java.lang.String sequenceNumber)
          Set the 'SequenceNumber' attribute value.
 int sizePromotionInfos()
          Get the number of 'PromotionInfo' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynamicPkgSearch

public DynamicPkgSearch()
Method Detail

getPromotionInfos

public java.util.List<DynamicPkgSearch.PromotionInfo> getPromotionInfos()
Get the list of 'PromotionInfo' element items.

Returns:
list

setPromotionInfos

public void setPromotionInfos(java.util.List<DynamicPkgSearch.PromotionInfo> list)
Set the list of 'PromotionInfo' element items.

Parameters:
list -

sizePromotionInfos

public int sizePromotionInfos()
Get the number of 'PromotionInfo' element items.

Returns:
count

addPromotionInfo

public void addPromotionInfo(DynamicPkgSearch.PromotionInfo item)
Add a 'PromotionInfo' element item.

Parameters:
item -

getPromotionInfo

public DynamicPkgSearch.PromotionInfo getPromotionInfo(int index)
Get 'PromotionInfo' element item by position.

Parameters:
index -
Returns:
item

clearPromotionInfos

public void clearPromotionInfos()
Remove all 'PromotionInfo' element items.


getMaxResponses

public java.lang.String getMaxResponses()
Get the 'MaxResponses' attribute value. Used to specify the maximum number of responses to a request.

Returns:
value

setMaxResponses

public void setMaxResponses(java.lang.String maxResponses)
Set the 'MaxResponses' attribute value. Used to specify the maximum number of responses to a request.

Parameters:
maxResponses -

getSequenceNumber

public java.lang.String getSequenceNumber()
Get the 'SequenceNumber' attribute value. Used to match up search critieria with component results.

Returns:
value

setSequenceNumber

public void setSequenceNumber(java.lang.String sequenceNumber)
Set the 'SequenceNumber' attribute value. Used to match up search critieria with component results.

Parameters:
sequenceNumber -