org.ota.air
Class FareInfo

java.lang.Object
  extended by org.ota.air.FareInfo
Direct Known Subclasses:
AirItineraryPricingInfo.FareInfos.FareInfo, PTCFareBreakdown.FareInfo

public class FareInfo
extends java.lang.Object

Rules for this priced option. Schema fragment(s) for this class:

 <xs:complexType xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="FareInfoType">
   <xs:sequence>
     <xs:element type="xs:dateTime" name="DepartureDate" minOccurs="0"/>
     <xs:element name="FareReference" minOccurs="0" maxOccurs="5">
       <!-- Reference to inner class FareReference -->
     </xs:element>
     <xs:element name="RuleInfo" minOccurs="0">
       <!-- Reference to inner class RuleInfo -->
     </xs:element>
     <xs:element type="ns:CompanyNameType" name="FilingAirline" minOccurs="0"/>
     <xs:element type="ns:CompanyNameType" name="MarketingAirline" minOccurs="0" maxOccurs="unbounded"/>
     <xs:element type="ns:LocationType" name="DepartureAirport" minOccurs="0"/>
     <xs:element type="ns:LocationType" name="ArrivalAirport" minOccurs="0"/>
     <xs:element name="Date" minOccurs="0" maxOccurs="5">
       <!-- Reference to inner class Date -->
     </xs:element>
     <xs:element name="FareInfo" minOccurs="0" maxOccurs="15">
       <!-- Reference to inner class FareInfoInner -->
     </xs:element>
     <xs:element name="DiscountPricing" minOccurs="0">
       <xs:complexType>
         <xs:attributeGroup ref="ns:DiscountPricingGroup"/>
       </xs:complexType>
     </xs:element>
     <xs:element name="City" minOccurs="0" maxOccurs="99">
       <xs:complexType>
         <xs:attributeGroup ref="ns:LocationGroup"/>
       </xs:complexType>
     </xs:element>
     <xs:element name="Airport" minOccurs="0" maxOccurs="99">
       <xs:complexType>
         <xs:attributeGroup ref="ns:LocationGroup"/>
       </xs:complexType>
     </xs:element>
   </xs:sequence>
   <xs:attributeGroup ref="ns:NegotiatedFareAttributes"/>
   <xs:attribute type="xs:string" use="optional" name="CurrencyCode"/>
   <xs:attribute type="xs:string" use="optional" name="TariffNumber"/>
   <xs:attribute type="xs:string" use="optional" name="RuleNumber"/>
   <xs:attribute type="xs:int" use="optional" name="RoutingNumber"/>
   <xs:attribute type="xs:int" use="optional" name="NbrOfCities"/>
 </xs:complexType>
 


Nested Class Summary
static class FareInfo.Date
          Date information applicable to the fare rules.
static class FareInfo.FareInfoInner
          Fares and related information for this fare rule.
static class FareInfo.FareReference
          Used to provide the fare basis code, the fare class code, and/or ticket designator.
static class FareInfo.RuleInfo
          Information regarding restrictions governing use of the fare.
 
Constructor Summary
FareInfo()
           
 
Method Summary
 void addAirport(LocationGroup item)
          Add a 'Airport' element item.
 void addCity(LocationGroup item)
          Add a 'City' element item.
 void addDate(FareInfo.Date item)
          Add a 'Date' element item.
 void addFareInfo(FareInfo.FareInfoInner item)
          Add a 'FareInfo' element item.
 void addFareReference(FareInfo.FareReference item)
          Add a 'FareReference' element item.
 void addMarketingAirline(CompanyName item)
          Add a 'MarketingAirline' element item.
 void clearAirports()
          Remove all 'Airport' element items.
 void clearCities()
          Remove all 'City' element items.
 void clearDates()
          Remove all 'Date' element items.
 void clearFareInfos()
          Remove all 'FareInfo' element items.
 void clearFareReferences()
          Remove all 'FareReference' element items.
 void clearMarketingAirlines()
          Remove all 'MarketingAirline' element items.
 LocationGroup getAirport(int index)
          Get 'Airport' element item by position.
 java.util.List<LocationGroup> getAirports()
          Get the list of 'Airport' element items.
 Location getArrivalAirport()
          Get the 'ArrivalAirport' element value.
 java.util.List<LocationGroup> getCities()
          Get the list of 'City' element items.
 LocationGroup getCity(int index)
          Get 'City' element item by position.
 java.lang.String getCurrencyCode()
          Get the 'CurrencyCode' attribute value.
 FareInfo.Date getDate(int index)
          Get 'Date' element item by position.
 java.util.List<FareInfo.Date> getDates()
          Get the list of 'Date' element items.
 Location getDepartureAirport()
          Get the 'DepartureAirport' element value.
 java.util.Date getDepartureDate()
          Get the 'DepartureDate' element value.
 DiscountPricingGroup getDiscountPricing()
          Get the 'DiscountPricingGroup' attributeGroup value.
 FareInfo.FareInfoInner getFareInfo(int index)
          Get 'FareInfo' element item by position.
 java.util.List<FareInfo.FareInfoInner> getFareInfos()
          Get the list of 'FareInfo' element items.
 FareInfo.FareReference getFareReference(int index)
          Get 'FareReference' element item by position.
 java.util.List<FareInfo.FareReference> getFareReferences()
          Get the list of 'FareReference' element items.
 CompanyName getFilingAirline()
          Get the 'FilingAirline' element value.
 CompanyName getMarketingAirline(int index)
          Get 'MarketingAirline' element item by position.
 java.util.List<CompanyName> getMarketingAirlines()
          Get the list of 'MarketingAirline' element items.
 java.lang.Integer getNbrOfCities()
          Get the 'NbrOfCities' attribute value.
 NegotiatedFareAttributes getNegotiatedFareAttributes()
          Get the 'NegotiatedFareAttributes' attributeGroup value.
 java.lang.Integer getRoutingNumber()
          Get the 'RoutingNumber' attribute value.
 FareInfo.RuleInfo getRuleInfo()
          Get the 'RuleInfo' element value.
 java.lang.String getRuleNumber()
          Get the 'RuleNumber' attribute value.
 java.lang.String getTariffNumber()
          Get the 'TariffNumber' attribute value.
 void setAirports(java.util.List<LocationGroup> list)
          Set the list of 'Airport' element items.
 void setArrivalAirport(Location arrivalAirport)
          Set the 'ArrivalAirport' element value.
 void setCities(java.util.List<LocationGroup> list)
          Set the list of 'City' element items.
 void setCurrencyCode(java.lang.String currencyCode)
          Set the 'CurrencyCode' attribute value.
 void setDates(java.util.List<FareInfo.Date> list)
          Set the list of 'Date' element items.
 void setDepartureAirport(Location departureAirport)
          Set the 'DepartureAirport' element value.
 void setDepartureDate(java.util.Date departureDate)
          Set the 'DepartureDate' element value.
 void setDiscountPricing(DiscountPricingGroup discountPricing)
          Set the 'DiscountPricingGroup' attributeGroup value.
 void setFareInfos(java.util.List<FareInfo.FareInfoInner> list)
          Set the list of 'FareInfo' element items.
 void setFareReferences(java.util.List<FareInfo.FareReference> list)
          Set the list of 'FareReference' element items.
 void setFilingAirline(CompanyName filingAirline)
          Set the 'FilingAirline' element value.
 void setMarketingAirlines(java.util.List<CompanyName> list)
          Set the list of 'MarketingAirline' element items.
 void setNbrOfCities(java.lang.Integer nbrOfCities)
          Set the 'NbrOfCities' attribute value.
 void setNegotiatedFareAttributes(NegotiatedFareAttributes negotiatedFareAttributes)
          Set the 'NegotiatedFareAttributes' attributeGroup value.
 void setRoutingNumber(java.lang.Integer routingNumber)
          Set the 'RoutingNumber' attribute value.
 void setRuleInfo(FareInfo.RuleInfo ruleInfo)
          Set the 'RuleInfo' element value.
 void setRuleNumber(java.lang.String ruleNumber)
          Set the 'RuleNumber' attribute value.
 void setTariffNumber(java.lang.String tariffNumber)
          Set the 'TariffNumber' attribute value.
 int sizeAirports()
          Get the number of 'Airport' element items.
 int sizeCities()
          Get the number of 'City' element items.
 int sizeDates()
          Get the number of 'Date' element items.
 int sizeFareInfos()
          Get the number of 'FareInfo' element items.
 int sizeFareReferences()
          Get the number of 'FareReference' element items.
 int sizeMarketingAirlines()
          Get the number of 'MarketingAirline' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FareInfo

public FareInfo()
Method Detail

getDepartureDate

public java.util.Date getDepartureDate()
Get the 'DepartureDate' element value. Departure Date for this priced fare

Returns:
value

setDepartureDate

public void setDepartureDate(java.util.Date departureDate)
Set the 'DepartureDate' element value. Departure Date for this priced fare

Parameters:
departureDate -

getFareReferences

public java.util.List<FareInfo.FareReference> getFareReferences()
Get the list of 'FareReference' element items.

Returns:
list

setFareReferences

public void setFareReferences(java.util.List<FareInfo.FareReference> list)
Set the list of 'FareReference' element items.

Parameters:
list -

sizeFareReferences

public int sizeFareReferences()
Get the number of 'FareReference' element items.

Returns:
count

addFareReference

public void addFareReference(FareInfo.FareReference item)
Add a 'FareReference' element item.

Parameters:
item -

getFareReference

public FareInfo.FareReference getFareReference(int index)
Get 'FareReference' element item by position.

Parameters:
index -
Returns:
item

clearFareReferences

public void clearFareReferences()
Remove all 'FareReference' element items.


getRuleInfo

public FareInfo.RuleInfo getRuleInfo()
Get the 'RuleInfo' element value.

Returns:
value

setRuleInfo

public void setRuleInfo(FareInfo.RuleInfo ruleInfo)
Set the 'RuleInfo' element value.

Parameters:
ruleInfo -

getFilingAirline

public CompanyName getFilingAirline()
Get the 'FilingAirline' element value. The airline that filed the fare(s).

Returns:
value

setFilingAirline

public void setFilingAirline(CompanyName filingAirline)
Set the 'FilingAirline' element value. The airline that filed the fare(s).

Parameters:
filingAirline -

getMarketingAirlines

public java.util.List<CompanyName> getMarketingAirlines()
Get the list of 'MarketingAirline' element items. The marketing airline.

Returns:
list

setMarketingAirlines

public void setMarketingAirlines(java.util.List<CompanyName> list)
Set the list of 'MarketingAirline' element items. The marketing airline.

Parameters:
list -

sizeMarketingAirlines

public int sizeMarketingAirlines()
Get the number of 'MarketingAirline' element items.

Returns:
count

addMarketingAirline

public void addMarketingAirline(CompanyName item)
Add a 'MarketingAirline' element item.

Parameters:
item -

getMarketingAirline

public CompanyName getMarketingAirline(int index)
Get 'MarketingAirline' element item by position.

Parameters:
index -
Returns:
item

clearMarketingAirlines

public void clearMarketingAirlines()
Remove all 'MarketingAirline' element items.


getDepartureAirport

public Location getDepartureAirport()
Get the 'DepartureAirport' element value. Departure point of flight segment.

Returns:
value

setDepartureAirport

public void setDepartureAirport(Location departureAirport)
Set the 'DepartureAirport' element value. Departure point of flight segment.

Parameters:
departureAirport -

getArrivalAirport

public Location getArrivalAirport()
Get the 'ArrivalAirport' element value. Arrival point of flight segment.

Returns:
value

setArrivalAirport

public void setArrivalAirport(Location arrivalAirport)
Set the 'ArrivalAirport' element value. Arrival point of flight segment.

Parameters:
arrivalAirport -

getDates

public java.util.List<FareInfo.Date> getDates()
Get the list of 'Date' element items.

Returns:
list

setDates

public void setDates(java.util.List<FareInfo.Date> list)
Set the list of 'Date' element items.

Parameters:
list -

sizeDates

public int sizeDates()
Get the number of 'Date' element items.

Returns:
count

addDate

public void addDate(FareInfo.Date item)
Add a 'Date' element item.

Parameters:
item -

getDate

public FareInfo.Date getDate(int index)
Get 'Date' element item by position.

Parameters:
index -
Returns:
item

clearDates

public void clearDates()
Remove all 'Date' element items.


getFareInfos

public java.util.List<FareInfo.FareInfoInner> getFareInfos()
Get the list of 'FareInfo' element items.

Returns:
list

setFareInfos

public void setFareInfos(java.util.List<FareInfo.FareInfoInner> list)
Set the list of 'FareInfo' element items.

Parameters:
list -

sizeFareInfos

public int sizeFareInfos()
Get the number of 'FareInfo' element items.

Returns:
count

addFareInfo

public void addFareInfo(FareInfo.FareInfoInner item)
Add a 'FareInfo' element item.

Parameters:
item -

getFareInfo

public FareInfo.FareInfoInner getFareInfo(int index)
Get 'FareInfo' element item by position.

Parameters:
index -
Returns:
item

clearFareInfos

public void clearFareInfos()
Remove all 'FareInfo' element items.


getDiscountPricing

public DiscountPricingGroup getDiscountPricing()
Get the 'DiscountPricingGroup' attributeGroup value. The information needed when a passenger presents a discount/promotional coupon for a dollar/percentage off the fare or when a passenger qualifies for a percentage discount such as a senior discount.

Returns:
value

setDiscountPricing

public void setDiscountPricing(DiscountPricingGroup discountPricing)
Set the 'DiscountPricingGroup' attributeGroup value. The information needed when a passenger presents a discount/promotional coupon for a dollar/percentage off the fare or when a passenger qualifies for a percentage discount such as a senior discount.

Parameters:
discountPricing -

getCities

public java.util.List<LocationGroup> getCities()
Get the list of 'City' element items. A city code valid for this fare.

Returns:
list

setCities

public void setCities(java.util.List<LocationGroup> list)
Set the list of 'City' element items. A city code valid for this fare.

Parameters:
list -

sizeCities

public int sizeCities()
Get the number of 'City' element items.

Returns:
count

addCity

public void addCity(LocationGroup item)
Add a 'City' element item.

Parameters:
item -

getCity

public LocationGroup getCity(int index)
Get 'City' element item by position.

Parameters:
index -
Returns:
item

clearCities

public void clearCities()
Remove all 'City' element items.


getAirports

public java.util.List<LocationGroup> getAirports()
Get the list of 'Airport' element items. An airport code valid for this fare.

Returns:
list

setAirports

public void setAirports(java.util.List<LocationGroup> list)
Set the list of 'Airport' element items. An airport code valid for this fare.

Parameters:
list -

sizeAirports

public int sizeAirports()
Get the number of 'Airport' element items.

Returns:
count

addAirport

public void addAirport(LocationGroup item)
Add a 'Airport' element item.

Parameters:
item -

getAirport

public LocationGroup getAirport(int index)
Get 'Airport' element item by position.

Parameters:
index -
Returns:
item

clearAirports

public void clearAirports()
Remove all 'Airport' element items.


getNegotiatedFareAttributes

public NegotiatedFareAttributes getNegotiatedFareAttributes()
Get the 'NegotiatedFareAttributes' attributeGroup value.

Returns:
value

setNegotiatedFareAttributes

public void setNegotiatedFareAttributes(NegotiatedFareAttributes negotiatedFareAttributes)
Set the 'NegotiatedFareAttributes' attributeGroup value.

Parameters:
negotiatedFareAttributes -

getCurrencyCode

public java.lang.String getCurrencyCode()
Get the 'CurrencyCode' attribute value. The ISO 4217 currency code associated with the fare rule information.

Returns:
value

setCurrencyCode

public void setCurrencyCode(java.lang.String currencyCode)
Set the 'CurrencyCode' attribute value. The ISO 4217 currency code associated with the fare rule information.

Parameters:
currencyCode -

getTariffNumber

public java.lang.String getTariffNumber()
Get the 'TariffNumber' attribute value. The tariff number for the rule.

Returns:
value

setTariffNumber

public void setTariffNumber(java.lang.String tariffNumber)
Set the 'TariffNumber' attribute value. The tariff number for the rule.

Parameters:
tariffNumber -

getRuleNumber

public java.lang.String getRuleNumber()
Get the 'RuleNumber' attribute value. The number associated with the fare rule.

Returns:
value

setRuleNumber

public void setRuleNumber(java.lang.String ruleNumber)
Set the 'RuleNumber' attribute value. The number associated with the fare rule.

Parameters:
ruleNumber -

getRoutingNumber

public java.lang.Integer getRoutingNumber()
Get the 'RoutingNumber' attribute value. The routing number applicable to this fare.

Returns:
value

setRoutingNumber

public void setRoutingNumber(java.lang.Integer routingNumber)
Set the 'RoutingNumber' attribute value. The routing number applicable to this fare.

Parameters:
routingNumber -

getNbrOfCities

public java.lang.Integer getNbrOfCities()
Get the 'NbrOfCities' attribute value. The number of cities applicable to this fare.

Returns:
value

setNbrOfCities

public void setNbrOfCities(java.lang.Integer nbrOfCities)
Set the 'NbrOfCities' attribute value. The number of cities applicable to this fare.

Parameters:
nbrOfCities -