org.ota.air
Class PTCFareBreakdown.PricingUnit.FareComponent

java.lang.Object
  extended by org.ota.air.PTCFareBreakdown.PricingUnit.FareComponent
Enclosing class:
PTCFareBreakdown.PricingUnit

public static class PTCFareBreakdown.PricingUnit.FareComponent
extends java.lang.Object

Provides the data for a component of the fare. 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="FareComponent" maxOccurs="99">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="FlightLeg" maxOccurs="99">
         <!-- Reference to inner class FlightLeg -->
       </xs:element>
     </xs:sequence>
     <xs:attribute type="xs:int" use="required" name="Number"/>
     <xs:attributeGroup ref="ns:CurrencyAmountGroup"/>
   </xs:complexType>
 </xs:element>
 


Nested Class Summary
static class PTCFareBreakdown.PricingUnit.FareComponent.FlightLeg
          The flight leg information for the fare component.
 
Constructor Summary
PTCFareBreakdown.PricingUnit.FareComponent()
           
 
Method Summary
 void addFlightLeg(PTCFareBreakdown.PricingUnit.FareComponent.FlightLeg item)
          Add a 'FlightLeg' element item.
 void clearFlightLegs()
          Remove all 'FlightLeg' element items.
 CurrencyAmountGroup getCurrencyAmountGroup()
          Get the 'CurrencyAmountGroup' attributeGroup value.
 PTCFareBreakdown.PricingUnit.FareComponent.FlightLeg getFlightLeg(int index)
          Get 'FlightLeg' element item by position.
 java.util.List<PTCFareBreakdown.PricingUnit.FareComponent.FlightLeg> getFlightLegs()
          Get the list of 'FlightLeg' element items.
 java.lang.Integer getNumber()
          Get the 'Number' attribute value.
 void setCurrencyAmountGroup(CurrencyAmountGroup currencyAmountGroup)
          Set the 'CurrencyAmountGroup' attributeGroup value.
 void setFlightLegs(java.util.List<PTCFareBreakdown.PricingUnit.FareComponent.FlightLeg> list)
          Set the list of 'FlightLeg' element items.
 void setNumber(java.lang.Integer number)
          Set the 'Number' attribute value.
 int sizeFlightLegs()
          Get the number of 'FlightLeg' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PTCFareBreakdown.PricingUnit.FareComponent

public PTCFareBreakdown.PricingUnit.FareComponent()
Method Detail

getFlightLegs

public java.util.List<PTCFareBreakdown.PricingUnit.FareComponent.FlightLeg> getFlightLegs()
Get the list of 'FlightLeg' element items.

Returns:
list

setFlightLegs

public void setFlightLegs(java.util.List<PTCFareBreakdown.PricingUnit.FareComponent.FlightLeg> list)
Set the list of 'FlightLeg' element items.

Parameters:
list -

sizeFlightLegs

public int sizeFlightLegs()
Get the number of 'FlightLeg' element items.

Returns:
count

addFlightLeg

public void addFlightLeg(PTCFareBreakdown.PricingUnit.FareComponent.FlightLeg item)
Add a 'FlightLeg' element item.

Parameters:
item -

getFlightLeg

public PTCFareBreakdown.PricingUnit.FareComponent.FlightLeg getFlightLeg(int index)
Get 'FlightLeg' element item by position.

Parameters:
index -
Returns:
item

clearFlightLegs

public void clearFlightLegs()
Remove all 'FlightLeg' element items.


getNumber

public java.lang.Integer getNumber()
Get the 'Number' attribute value. The fare component number.

Returns:
value

setNumber

public void setNumber(java.lang.Integer number)
Set the 'Number' attribute value. The fare component number.

Parameters:
number -

getCurrencyAmountGroup

public CurrencyAmountGroup getCurrencyAmountGroup()
Get the 'CurrencyAmountGroup' attributeGroup value. The currency code and the amount for the fare component.

Returns:
value

setCurrencyAmountGroup

public void setCurrencyAmountGroup(CurrencyAmountGroup currencyAmountGroup)
Set the 'CurrencyAmountGroup' attributeGroup value. The currency code and the amount for the fare component.

Parameters:
currencyAmountGroup -