org.ota.pkg
Class ExtrasInfo.Periods

java.lang.Object
  extended by org.ota.pkg.ExtrasInfo.Periods
Enclosing class:
ExtrasInfo

public static class ExtrasInfo.Periods
extends java.lang.Object

A collection of prices by booking period. Schema fragment(s) for this class:

 <xs:element xmlns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="Periods" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="PeriodPriceType" name="Period" maxOccurs="unbounded">
         <!-- Reference to inner class Period -->
       </xs:element>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 


Nested Class Summary
static class ExtrasInfo.Periods.Period
          The price of the Extra per unit (which may be person, room, car etc,) and/or duration Schema fragment(s) for this class:
 
Constructor Summary
ExtrasInfo.Periods()
           
 
Method Summary
 void addPeriod(ExtrasInfo.Periods.Period item)
          Add a 'Period' element item.
 void clearPeriods()
          Remove all 'Period' element items.
 ExtrasInfo.Periods.Period getPeriod(int index)
          Get 'Period' element item by position.
 java.util.List<ExtrasInfo.Periods.Period> getPeriods()
          Get the list of 'Period' element items.
 void setPeriods(java.util.List<ExtrasInfo.Periods.Period> list)
          Set the list of 'Period' element items.
 int sizePeriods()
          Get the number of 'Period' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtrasInfo.Periods

public ExtrasInfo.Periods()
Method Detail

getPeriods

public java.util.List<ExtrasInfo.Periods.Period> getPeriods()
Get the list of 'Period' element items.

Returns:
list

setPeriods

public void setPeriods(java.util.List<ExtrasInfo.Periods.Period> list)
Set the list of 'Period' element items.

Parameters:
list -

sizePeriods

public int sizePeriods()
Get the number of 'Period' element items.

Returns:
count

addPeriod

public void addPeriod(ExtrasInfo.Periods.Period item)
Add a 'Period' element item.

Parameters:
item -

getPeriod

public ExtrasInfo.Periods.Period getPeriod(int index)
Get 'Period' element item by position.

Parameters:
index -
Returns:
item

clearPeriods

public void clearPeriods()
Remove all 'Period' element items.