org.ota.pkg
Class MealPlan.Prices

java.lang.Object
  extended by org.ota.pkg.MealPlan.Prices
Enclosing class:
MealPlan

public static class MealPlan.Prices
extends java.lang.Object

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="Prices" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="Price" maxOccurs="9">
         <xs:complexType>
           <xs:attributeGroup ref="ns:PriceGroup"/>
         </xs:complexType>
       </xs:element>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 


Constructor Summary
MealPlan.Prices()
           
 
Method Summary
 void addPrice(PriceGroup item)
          Add a 'Price' element item.
 void clearPrices()
          Remove all 'Price' element items.
 PriceGroup getPrice(int index)
          Get 'Price' element item by position.
 java.util.List<PriceGroup> getPrices()
          Get the list of 'Price' element items.
 void setPrices(java.util.List<PriceGroup> list)
          Set the list of 'Price' element items.
 int sizePrices()
          Get the number of 'Price' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MealPlan.Prices

public MealPlan.Prices()
Method Detail

getPrices

public java.util.List<PriceGroup> getPrices()
Get the list of 'Price' element items. The passenger price of an item - e.g. the base price for a package.

Returns:
list

setPrices

public void setPrices(java.util.List<PriceGroup> list)
Set the list of 'Price' element items. The passenger price of an item - e.g. the base price for a package.

Parameters:
list -

sizePrices

public int sizePrices()
Get the number of 'Price' element items.

Returns:
count

addPrice

public void addPrice(PriceGroup item)
Add a 'Price' element item.

Parameters:
item -

getPrice

public PriceGroup getPrice(int index)
Get 'Price' element item by position.

Parameters:
index -
Returns:
item

clearPrices

public void clearPrices()
Remove all 'Price' element items.