org.ota.air
Class FareInfo.FareInfoInner

java.lang.Object
  extended by org.ota.air.FareInfo.FareInfoInner
Enclosing class:
FareInfo

public static class FareInfo.FareInfoInner
extends java.lang.Object

Fares and related information for this fare rule. 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="FareInfo" minOccurs="0" maxOccurs="15">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="Date" minOccurs="0" maxOccurs="5">
         <!-- Reference to inner class Date -->
       </xs:element>
       <xs:element name="Fare" minOccurs="0">
         <!-- Reference to inner class Fare -->
       </xs:element>
       <xs:element name="PTC" minOccurs="0" maxOccurs="5">
         <!-- Reference to inner class PTC -->
       </xs:element>
     </xs:sequence>
     <xs:attribute type="xs:string" use="optional" name="FareBasisCode"/>
     <xs:attribute type="ns:GlobalIndicatorType" use="optional" name="GlobalIndicatorCode"/>
     <xs:attribute type="xs:int" use="optional" name="MaximumPermittedMileage"/>
     <xs:attribute type="ns:AirTripType" use="optional" name="TripType"/>
     <xs:attribute type="xs:string" use="optional" name="FareType"/>
     <xs:attribute type="ns:FareStatusType" use="optional" name="FareStatus"/>
     <xs:attribute type="ns:ActionType" use="optional" name="Operation"/>
     <xs:attribute type="xs:string" use="optional" name="RPH"/>
   </xs:complexType>
 </xs:element>
 


Nested Class Summary
static class FareInfo.FareInfoInner.Date
          Date information applicable to the fare.
static class FareInfo.FareInfoInner.Fare
          The base and total fare and tax amounts associated with the rule.
static class FareInfo.FareInfoInner.PTC
          The passenger types for which the fare is applicable.
 
Constructor Summary
FareInfo.FareInfoInner()
           
 
Method Summary
 void addDate(FareInfo.FareInfoInner.Date item)
          Add a 'Date' element item.
 void addPTC(FareInfo.FareInfoInner.PTC item)
          Add a 'PTC' element item.
 void clearDates()
          Remove all 'Date' element items.
 void clearPTCs()
          Remove all 'PTC' element items.
 FareInfo.FareInfoInner.Date getDate(int index)
          Get 'Date' element item by position.
 java.util.List<FareInfo.FareInfoInner.Date> getDates()
          Get the list of 'Date' element items.
 FareInfo.FareInfoInner.Fare getFare()
          Get the 'Fare' element value.
 java.lang.String getFare1()
          Get the 'FareType' attribute value.
 java.lang.String getFareBasisCode()
          Get the 'FareBasisCode' attribute value.
 FareStatus getFareStatus()
          Get the 'FareStatus' attribute value.
 GlobalIndicator getGlobalIndicatorCode()
          Get the 'GlobalIndicatorCode' attribute value.
 java.lang.Integer getMaximumPermittedMileage()
          Get the 'MaximumPermittedMileage' attribute value.
 Action getOperation()
          Get the 'Operation' attribute value.
 FareInfo.FareInfoInner.PTC getPTC(int index)
          Get 'PTC' element item by position.
 java.util.List<FareInfo.FareInfoInner.PTC> getPTCs()
          Get the list of 'PTC' element items.
 java.lang.String getRPH()
          Get the 'RPH' attribute value.
 AirTrip getTrip()
          Get the 'TripType' attribute value.
 void setDates(java.util.List<FareInfo.FareInfoInner.Date> list)
          Set the list of 'Date' element items.
 void setFare(FareInfo.FareInfoInner.Fare fare)
          Set the 'Fare' element value.
 void setFare1(java.lang.String fare1)
          Set the 'FareType' attribute value.
 void setFareBasisCode(java.lang.String fareBasisCode)
          Set the 'FareBasisCode' attribute value.
 void setFareStatus(FareStatus fareStatus)
          Set the 'FareStatus' attribute value.
 void setGlobalIndicatorCode(GlobalIndicator globalIndicatorCode)
          Set the 'GlobalIndicatorCode' attribute value.
 void setMaximumPermittedMileage(java.lang.Integer maximumPermittedMileage)
          Set the 'MaximumPermittedMileage' attribute value.
 void setOperation(Action operation)
          Set the 'Operation' attribute value.
 void setPTCs(java.util.List<FareInfo.FareInfoInner.PTC> list)
          Set the list of 'PTC' element items.
 void setRPH(java.lang.String RPH)
          Set the 'RPH' attribute value.
 void setTrip(AirTrip trip)
          Set the 'TripType' attribute value.
 int sizeDates()
          Get the number of 'Date' element items.
 int sizePTCs()
          Get the number of 'PTC' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FareInfo.FareInfoInner

public FareInfo.FareInfoInner()
Method Detail

getDates

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

Returns:
list

setDates

public void setDates(java.util.List<FareInfo.FareInfoInner.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.FareInfoInner.Date item)
Add a 'Date' element item.

Parameters:
item -

getDate

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

Parameters:
index -
Returns:
item

clearDates

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


getFare

public FareInfo.FareInfoInner.Fare getFare()
Get the 'Fare' element value.

Returns:
value

setFare

public void setFare(FareInfo.FareInfoInner.Fare fare)
Set the 'Fare' element value.

Parameters:
fare -

getPTCs

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

Returns:
list

setPTCs

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

Parameters:
list -

sizePTCs

public int sizePTCs()
Get the number of 'PTC' element items.

Returns:
count

addPTC

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

Parameters:
item -

getPTC

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

Parameters:
index -
Returns:
item

clearPTCs

public void clearPTCs()
Remove all 'PTC' element items.


getFareBasisCode

public java.lang.String getFareBasisCode()
Get the 'FareBasisCode' attribute value. The fare basis code for the fare for this rule.

Returns:
value

setFareBasisCode

public void setFareBasisCode(java.lang.String fareBasisCode)
Set the 'FareBasisCode' attribute value. The fare basis code for the fare for this rule.

Parameters:
fareBasisCode -

getGlobalIndicatorCode

public GlobalIndicator getGlobalIndicatorCode()
Get the 'GlobalIndicatorCode' attribute value. The global direction for this fare rule.

Returns:
value

setGlobalIndicatorCode

public void setGlobalIndicatorCode(GlobalIndicator globalIndicatorCode)
Set the 'GlobalIndicatorCode' attribute value. The global direction for this fare rule.

Parameters:
globalIndicatorCode -

getMaximumPermittedMileage

public java.lang.Integer getMaximumPermittedMileage()
Get the 'MaximumPermittedMileage' attribute value. The maximum mileage (in miles) that can be travelled under this fare .

Returns:
value

setMaximumPermittedMileage

public void setMaximumPermittedMileage(java.lang.Integer maximumPermittedMileage)
Set the 'MaximumPermittedMileage' attribute value. The maximum mileage (in miles) that can be travelled under this fare .

Parameters:
maximumPermittedMileage -

getTrip

public AirTrip getTrip()
Get the 'TripType' attribute value. Tthe type of trip associated with the rule.

Returns:
value

setTrip

public void setTrip(AirTrip trip)
Set the 'TripType' attribute value. Tthe type of trip associated with the rule.

Parameters:
trip -

getFare1

public java.lang.String getFare1()
Get the 'FareType' attribute value. Specifies the fare type for this fare.

Returns:
value

setFare1

public void setFare1(java.lang.String fare1)
Set the 'FareType' attribute value. Specifies the fare type for this fare.

Parameters:
fare1 -

getFareStatus

public FareStatus getFareStatus()
Get the 'FareStatus' attribute value. Identifies whether the fare was constructed, published, created, etc.

Returns:
value

setFareStatus

public void setFareStatus(FareStatus fareStatus)
Set the 'FareStatus' attribute value. Identifies whether the fare was constructed, published, created, etc.

Parameters:
fareStatus -

getOperation

public Action getOperation()
Get the 'Operation' attribute value. Indicates the required modification to the element.

Returns:
value

setOperation

public void setOperation(Action operation)
Set the 'Operation' attribute value. Indicates the required modification to the element.

Parameters:
operation -

getRPH

public java.lang.String getRPH()
Get the 'RPH' attribute value. Provides a reference to a specific FareInfo item between an air modification request and the existing air reservation.

Returns:
value

setRPH

public void setRPH(java.lang.String RPH)
Set the 'RPH' attribute value. Provides a reference to a specific FareInfo item between an air modification request and the existing air reservation.

Parameters:
RPH -