org.ota.dynamicpkg
Class DynamicPkgResponse

java.lang.Object
  extended by org.ota.dynamicpkg.DynamicPkgResponse
Direct Known Subclasses:
AvailRS.SearchResults.AirResults, AvailRS.SearchResults.HotelResults

public abstract class DynamicPkgResponse
extends java.lang.Object

Contains properties common to component response 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="DynamicPkgResponseType">
   <xs:sequence>
     <xs:element name="PromotionCode" minOccurs="0" maxOccurs="5">
       <!-- Reference to inner class PromotionCode -->
     </xs:element>
     <xs:element type="ns:WarningsType" name="Warnings" minOccurs="0"/>
   </xs:sequence>
   <xs:attribute type="xs:int" use="optional" name="SequenceNumber"/>
   <xs:attribute type="xs:string" use="optional" name="QuoteID"/>
 </xs:complexType>
 


Nested Class Summary
static class DynamicPkgResponse.PromotionCode
          Promotion code reference placeholder.
 
Constructor Summary
DynamicPkgResponse()
           
 
Method Summary
 void addPromotionCode(DynamicPkgResponse.PromotionCode item)
          Add a 'PromotionCode' element item.
 void clearPromotionCodes()
          Remove all 'PromotionCode' element items.
 DynamicPkgResponse.PromotionCode getPromotionCode(int index)
          Get 'PromotionCode' element item by position.
 java.util.List<DynamicPkgResponse.PromotionCode> getPromotionCodes()
          Get the list of 'PromotionCode' element items.
 java.lang.String getQuoteID()
          Get the 'QuoteID' attribute value.
 java.lang.Integer getSequenceNumber()
          Get the 'SequenceNumber' attribute value.
 Warnings getWarnings()
          Get the 'Warnings' element value.
 void setPromotionCodes(java.util.List<DynamicPkgResponse.PromotionCode> list)
          Set the list of 'PromotionCode' element items.
 void setQuoteID(java.lang.String quoteID)
          Set the 'QuoteID' attribute value.
 void setSequenceNumber(java.lang.Integer sequenceNumber)
          Set the 'SequenceNumber' attribute value.
 void setWarnings(Warnings warnings)
          Set the 'Warnings' element value.
 int sizePromotionCodes()
          Get the number of 'PromotionCode' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynamicPkgResponse

public DynamicPkgResponse()
Method Detail

getPromotionCodes

public java.util.List<DynamicPkgResponse.PromotionCode> getPromotionCodes()
Get the list of 'PromotionCode' element items.

Returns:
list

setPromotionCodes

public void setPromotionCodes(java.util.List<DynamicPkgResponse.PromotionCode> list)
Set the list of 'PromotionCode' element items.

Parameters:
list -

sizePromotionCodes

public int sizePromotionCodes()
Get the number of 'PromotionCode' element items.

Returns:
count

addPromotionCode

public void addPromotionCode(DynamicPkgResponse.PromotionCode item)
Add a 'PromotionCode' element item.

Parameters:
item -

getPromotionCode

public DynamicPkgResponse.PromotionCode getPromotionCode(int index)
Get 'PromotionCode' element item by position.

Parameters:
index -
Returns:
item

clearPromotionCodes

public void clearPromotionCodes()
Remove all 'PromotionCode' element items.


getWarnings

public Warnings getWarnings()
Get the 'Warnings' element value. Standard way to indicate successful processing of an OpenTravel message, but one in which warnings are generated.

Returns:
value

setWarnings

public void setWarnings(Warnings warnings)
Set the 'Warnings' element value. Standard way to indicate successful processing of an OpenTravel message, but one in which warnings are generated.

Parameters:
warnings -

getSequenceNumber

public java.lang.Integer getSequenceNumber()
Get the 'SequenceNumber' attribute value.

Returns:
value

setSequenceNumber

public void setSequenceNumber(java.lang.Integer sequenceNumber)
Set the 'SequenceNumber' attribute value.

Parameters:
sequenceNumber -

getQuoteID

public java.lang.String getQuoteID()
Get the 'QuoteID' attribute value. A reference number used to match a query, with rates, to a given time. This is useful for matching prices within a given quote period.

Returns:
value

setQuoteID

public void setQuoteID(java.lang.String quoteID)
Set the 'QuoteID' attribute value. A reference number used to match a query, with rates, to a given time. This is useful for matching prices within a given quote period.

Parameters:
quoteID -