org.ota.dynamicpkg
Class DynamicPkgGlobalInfo.Promotions

java.lang.Object
  extended by org.ota.dynamicpkg.DynamicPkgGlobalInfo.Promotions
Enclosing class:
DynamicPkgGlobalInfo

public static class DynamicPkgGlobalInfo.Promotions
extends java.lang.Object

Collection of promotions applied to the package 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="Promotions" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="Promotion" maxOccurs="99">
         <xs:complexType>
           <xs:attributeGroup ref="ns:DiscountInfoGroup"/>
         </xs:complexType>
       </xs:element>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 


Constructor Summary
DynamicPkgGlobalInfo.Promotions()
           
 
Method Summary
 void addPromotion(DiscountInfoGroup item)
          Add a 'Promotion' element item.
 void clearPromotions()
          Remove all 'Promotion' element items.
 DiscountInfoGroup getPromotion(int index)
          Get 'Promotion' element item by position.
 java.util.List<DiscountInfoGroup> getPromotions()
          Get the list of 'Promotion' element items.
 void setPromotions(java.util.List<DiscountInfoGroup> list)
          Set the list of 'Promotion' element items.
 int sizePromotions()
          Get the number of 'Promotion' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynamicPkgGlobalInfo.Promotions

public DynamicPkgGlobalInfo.Promotions()
Method Detail

getPromotions

public java.util.List<DiscountInfoGroup> getPromotions()
Get the list of 'Promotion' element items. Provides promotion information associated with the package

Returns:
list

setPromotions

public void setPromotions(java.util.List<DiscountInfoGroup> list)
Set the list of 'Promotion' element items. Provides promotion information associated with the package

Parameters:
list -

sizePromotions

public int sizePromotions()
Get the number of 'Promotion' element items.

Returns:
count

addPromotion

public void addPromotion(DiscountInfoGroup item)
Add a 'Promotion' element item.

Parameters:
item -

getPromotion

public DiscountInfoGroup getPromotion(int index)
Get 'Promotion' element item by position.

Parameters:
index -
Returns:
item

clearPromotions

public void clearPromotions()
Remove all 'Promotion' element items.