org.ota.air
Class FareRuleResponseInfo

java.lang.Object
  extended by org.ota.air.FareRuleResponseInfo
Direct Known Subclasses:
RulesRS.FareRuleResponseInfo

public class FareRuleResponseInfo
extends java.lang.Object

The collection of Fare Rule requests and the applicable Fare Rule categories. 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="FareRuleResponseInfoType">
   <xs:sequence>
     <xs:element name="FareRuleInfo">
       <xs:complexType>
         <xs:complexContent>
           <xs:extension base="ns:FareInfoType">
             <xs:attribute type="xs:string" use="optional" name="LanguageRequested"/>
             <xs:attribute type="xs:string" use="optional" name="LanguageReturned"/>
           </xs:extension>
         </xs:complexContent>
       </xs:complexType>
     </xs:element>
     <xs:element type="ns:FormattedTextType" name="FareRules"/>
     <xs:element name="Routing" minOccurs="0" maxOccurs="99">
       <!-- Reference to inner class Routing -->
     </xs:element>
     <xs:element name="AdvisoryInfo" minOccurs="0" maxOccurs="15">
       <!-- Reference to inner class AdvisoryInfo -->
     </xs:element>
   </xs:sequence>
 </xs:complexType>
 


Nested Class Summary
static class FareRuleResponseInfo.AdvisoryInfo
          Advisory information that applies to all the rule information.
static class FareRuleResponseInfo.Routing
          Specifies the routing for all the fares.
 
Constructor Summary
FareRuleResponseInfo()
           
 
Method Summary
 void addAdvisoryInfo(FareRuleResponseInfo.AdvisoryInfo item)
          Add a 'AdvisoryInfo' element item.
 void addRouting(FareRuleResponseInfo.Routing item)
          Add a 'Routing' element item.
 void clearAdvisoryInfos()
          Remove all 'AdvisoryInfo' element items.
 void clearRoutings()
          Remove all 'Routing' element items.
 FareRuleResponseInfo.AdvisoryInfo getAdvisoryInfo(int index)
          Get 'AdvisoryInfo' element item by position.
 java.util.List<FareRuleResponseInfo.AdvisoryInfo> getAdvisoryInfos()
          Get the list of 'AdvisoryInfo' element items.
 FareInfo getFareRuleInfoFareInfo()
          Get the extension value.
 java.lang.String getFareRuleInfoLanguageRequested()
          Get the 'LanguageRequested' attribute value.
 java.lang.String getFareRuleInfoLanguageReturned()
          Get the 'LanguageReturned' attribute value.
 FormattedText getFareRules()
          Get the 'FareRules' element value.
 FareRuleResponseInfo.Routing getRouting(int index)
          Get 'Routing' element item by position.
 java.util.List<FareRuleResponseInfo.Routing> getRoutings()
          Get the list of 'Routing' element items.
 void setAdvisoryInfos(java.util.List<FareRuleResponseInfo.AdvisoryInfo> list)
          Set the list of 'AdvisoryInfo' element items.
 void setFareRuleInfoFareInfo(FareInfo fareRuleInfoFareInfo)
          Set the extension value.
 void setFareRuleInfoLanguageRequested(java.lang.String fareRuleInfoLanguageRequested)
          Set the 'LanguageRequested' attribute value.
 void setFareRuleInfoLanguageReturned(java.lang.String fareRuleInfoLanguageReturned)
          Set the 'LanguageReturned' attribute value.
 void setFareRules(FormattedText fareRules)
          Set the 'FareRules' element value.
 void setRoutings(java.util.List<FareRuleResponseInfo.Routing> list)
          Set the list of 'Routing' element items.
 int sizeAdvisoryInfos()
          Get the number of 'AdvisoryInfo' element items.
 int sizeRoutings()
          Get the number of 'Routing' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FareRuleResponseInfo

public FareRuleResponseInfo()
Method Detail

getFareRuleInfoFareInfo

public FareInfo getFareRuleInfoFareInfo()
Get the extension value.

Returns:
value

setFareRuleInfoFareInfo

public void setFareRuleInfoFareInfo(FareInfo fareRuleInfoFareInfo)
Set the extension value.

Parameters:
fareRuleInfoFareInfo -

getFareRuleInfoLanguageRequested

public java.lang.String getFareRuleInfoLanguageRequested()
Get the 'LanguageRequested' attribute value. Specifies the language in which the rules should be returned.

Returns:
value

setFareRuleInfoLanguageRequested

public void setFareRuleInfoLanguageRequested(java.lang.String fareRuleInfoLanguageRequested)
Set the 'LanguageRequested' attribute value. Specifies the language in which the rules should be returned.

Parameters:
fareRuleInfoLanguageRequested -

getFareRuleInfoLanguageReturned

public java.lang.String getFareRuleInfoLanguageReturned()
Get the 'LanguageReturned' attribute value. Specifies the language in which the rules are returned.

Returns:
value

setFareRuleInfoLanguageReturned

public void setFareRuleInfoLanguageReturned(java.lang.String fareRuleInfoLanguageReturned)
Set the 'LanguageReturned' attribute value. Specifies the language in which the rules are returned.

Parameters:
fareRuleInfoLanguageReturned -

getFareRules

public FormattedText getFareRules()
Get the 'FareRules' element value. The applicable Fare Rule categories.

Returns:
value

setFareRules

public void setFareRules(FormattedText fareRules)
Set the 'FareRules' element value. The applicable Fare Rule categories.

Parameters:
fareRules -

getRoutings

public java.util.List<FareRuleResponseInfo.Routing> getRoutings()
Get the list of 'Routing' element items.

Returns:
list

setRoutings

public void setRoutings(java.util.List<FareRuleResponseInfo.Routing> list)
Set the list of 'Routing' element items.

Parameters:
list -

sizeRoutings

public int sizeRoutings()
Get the number of 'Routing' element items.

Returns:
count

addRouting

public void addRouting(FareRuleResponseInfo.Routing item)
Add a 'Routing' element item.

Parameters:
item -

getRouting

public FareRuleResponseInfo.Routing getRouting(int index)
Get 'Routing' element item by position.

Parameters:
index -
Returns:
item

clearRoutings

public void clearRoutings()
Remove all 'Routing' element items.


getAdvisoryInfos

public java.util.List<FareRuleResponseInfo.AdvisoryInfo> getAdvisoryInfos()
Get the list of 'AdvisoryInfo' element items.

Returns:
list

setAdvisoryInfos

public void setAdvisoryInfos(java.util.List<FareRuleResponseInfo.AdvisoryInfo> list)
Set the list of 'AdvisoryInfo' element items.

Parameters:
list -

sizeAdvisoryInfos

public int sizeAdvisoryInfos()
Get the number of 'AdvisoryInfo' element items.

Returns:
count

addAdvisoryInfo

public void addAdvisoryInfo(FareRuleResponseInfo.AdvisoryInfo item)
Add a 'AdvisoryInfo' element item.

Parameters:
item -

getAdvisoryInfo

public FareRuleResponseInfo.AdvisoryInfo getAdvisoryInfo(int index)
Get 'AdvisoryInfo' element item by position.

Parameters:
index -
Returns:
item

clearAdvisoryInfos

public void clearAdvisoryInfos()
Remove all 'AdvisoryInfo' element items.