org.ota.dynamicpkg
Class AvailRQ.PromotionCodes

java.lang.Object
  extended by org.ota.dynamicpkg.AvailRQ.PromotionCodes
Enclosing class:
AvailRQ

public static class AvailRQ.PromotionCodes
extends java.lang.Object

Promotion codes that will be applied at either the package or component level. 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="PromotionCodes" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="PromotionCode" minOccurs="0" maxOccurs="unbounded">
         <!-- Reference to inner class PromotionCode -->
       </xs:element>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 


Nested Class Summary
static class AvailRQ.PromotionCodes.PromotionCode
          Used to apply discounts and tracking codes to a package.
 
Constructor Summary
AvailRQ.PromotionCodes()
           
 
Method Summary
 void addPromotionCode(AvailRQ.PromotionCodes.PromotionCode item)
          Add a 'PromotionCode' element item.
 void clearPromotionCodes()
          Remove all 'PromotionCode' element items.
 AvailRQ.PromotionCodes.PromotionCode getPromotionCode(int index)
          Get 'PromotionCode' element item by position.
 java.util.List<AvailRQ.PromotionCodes.PromotionCode> getPromotionCodes()
          Get the list of 'PromotionCode' element items.
 void setPromotionCodes(java.util.List<AvailRQ.PromotionCodes.PromotionCode> list)
          Set the list of 'PromotionCode' element items.
 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

AvailRQ.PromotionCodes

public AvailRQ.PromotionCodes()
Method Detail

getPromotionCodes

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

Returns:
list

setPromotionCodes

public void setPromotionCodes(java.util.List<AvailRQ.PromotionCodes.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(AvailRQ.PromotionCodes.PromotionCode item)
Add a 'PromotionCode' element item.

Parameters:
item -

getPromotionCode

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

Parameters:
index -
Returns:
item

clearPromotionCodes

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