org.ota.air
Class Fare.Discounts

java.lang.Object
  extended by org.ota.air.Fare.Discounts
Enclosing class:
Fare

public static class Fare.Discounts
extends java.lang.Object

Collection for discounts. 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="Discounts" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="Discount" maxOccurs="99">
         <xs:complexType>
           <xs:attributeGroup ref="ns:DiscountInfoGroup"/>
         </xs:complexType>
       </xs:element>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 


Constructor Summary
Fare.Discounts()
           
 
Method Summary
 void addDiscount(DiscountInfoGroup item)
          Add a 'Discount' element item.
 void clearDiscounts()
          Remove all 'Discount' element items.
 DiscountInfoGroup getDiscount(int index)
          Get 'Discount' element item by position.
 java.util.List<DiscountInfoGroup> getDiscounts()
          Get the list of 'Discount' element items.
 void setDiscounts(java.util.List<DiscountInfoGroup> list)
          Set the list of 'Discount' element items.
 int sizeDiscounts()
          Get the number of 'Discount' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Fare.Discounts

public Fare.Discounts()
Method Detail

getDiscounts

public java.util.List<DiscountInfoGroup> getDiscounts()
Get the list of 'Discount' element items. Provides discount information associated with the fare.

Returns:
list

setDiscounts

public void setDiscounts(java.util.List<DiscountInfoGroup> list)
Set the list of 'Discount' element items. Provides discount information associated with the fare.

Parameters:
list -

sizeDiscounts

public int sizeDiscounts()
Get the number of 'Discount' element items.

Returns:
count

addDiscount

public void addDiscount(DiscountInfoGroup item)
Add a 'Discount' element item.

Parameters:
item -

getDiscount

public DiscountInfoGroup getDiscount(int index)
Get 'Discount' element item by position.

Parameters:
index -
Returns:
item

clearDiscounts

public void clearDiscounts()
Remove all 'Discount' element items.