org.ota.air
Class RulesRQ

java.lang.Object
  extended by org.ota.air.RulesRQ

public class RulesRQ
extends java.lang.Object

The Rules Request message requests text rules for a specific fare class code for an airline and city pair on a specific date. Optional information negotiated fare contract codes to be included in the message. The rules request contains similar to a Fare Rules entry on an airline CRS or GDS. 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="OTA_AirRulesRQ">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:POS_Type" name="POS"/>
       <xs:element name="RuleReqInfo">
         <xs:complexType>
           <xs:complexContent>
             <xs:extension base="ns:FareInfoType">
               <xs:sequence>
                 <xs:element name="SubSection" minOccurs="0" maxOccurs="99">
                   <!-- Reference to inner class SubSection -->
                 </xs:element>
               </xs:sequence>
               <xs:attribute type="xs:string" use="optional" name="LanguageRequested"/>
               <xs:attribute type="xs:boolean" use="optional" name="AbbreviatedRuleTextInd"/>
             </xs:extension>
           </xs:complexContent>
         </xs:complexType>
       </xs:element>
     </xs:sequence>
     <xs:attributeGroup ref="ns:OTA_PayloadStdAttributes"/>
   </xs:complexType>
 </xs:element>
 


Nested Class Summary
static class RulesRQ.SubSection
          Schema fragment(s) for this class:
 
Constructor Summary
RulesRQ()
           
 
Method Summary
 void addSubSection(RulesRQ.SubSection item)
          Add a 'SubSection' element item.
 void clearSubSections()
          Remove all 'SubSection' element items.
 OTAPayloadStdAttributes getOTAPayloadStdAttributes()
          Get the 'OTA_PayloadStdAttributes' attributeGroup value.
 POS getPOS()
          Get the 'POS' element value.
 java.lang.Boolean getRuleReqInfoAbbreviatedRuleTextInd()
          Get the 'AbbreviatedRuleTextInd' attribute value.
 FareInfo getRuleReqInfoFareInfo()
          Get the extension value.
 java.lang.String getRuleReqInfoLanguageRequested()
          Get the 'LanguageRequested' attribute value.
 RulesRQ.SubSection getSubSection(int index)
          Get 'SubSection' element item by position.
 java.util.List<RulesRQ.SubSection> getSubSections()
          Get the list of 'SubSection' element items.
 void setOTAPayloadStdAttributes(OTAPayloadStdAttributes OTAPayloadStdAttributes)
          Set the 'OTA_PayloadStdAttributes' attributeGroup value.
 void setPOS(POS POS)
          Set the 'POS' element value.
 void setRuleReqInfoAbbreviatedRuleTextInd(java.lang.Boolean ruleReqInfoAbbreviatedRuleTextInd)
          Set the 'AbbreviatedRuleTextInd' attribute value.
 void setRuleReqInfoFareInfo(FareInfo ruleReqInfoFareInfo)
          Set the extension value.
 void setRuleReqInfoLanguageRequested(java.lang.String ruleReqInfoLanguageRequested)
          Set the 'LanguageRequested' attribute value.
 void setSubSections(java.util.List<RulesRQ.SubSection> list)
          Set the list of 'SubSection' element items.
 int sizeSubSections()
          Get the number of 'SubSection' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RulesRQ

public RulesRQ()
Method Detail

getPOS

public POS getPOS()
Get the 'POS' element value. Point of sale object.

Returns:
value

setPOS

public void setPOS(POS POS)
Set the 'POS' element value. Point of sale object.

Parameters:
POS -

getRuleReqInfoFareInfo

public FareInfo getRuleReqInfoFareInfo()
Get the extension value.

Returns:
value

setRuleReqInfoFareInfo

public void setRuleReqInfoFareInfo(FareInfo ruleReqInfoFareInfo)
Set the extension value.

Parameters:
ruleReqInfoFareInfo -

getSubSections

public java.util.List<RulesRQ.SubSection> getSubSections()
Get the list of 'SubSection' element items. The Rule Request Information required to return all applicable fare rule categories.

Returns:
list

setSubSections

public void setSubSections(java.util.List<RulesRQ.SubSection> list)
Set the list of 'SubSection' element items. The Rule Request Information required to return all applicable fare rule categories.

Parameters:
list -

sizeSubSections

public int sizeSubSections()
Get the number of 'SubSection' element items.

Returns:
count

addSubSection

public void addSubSection(RulesRQ.SubSection item)
Add a 'SubSection' element item.

Parameters:
item -

getSubSection

public RulesRQ.SubSection getSubSection(int index)
Get 'SubSection' element item by position.

Parameters:
index -
Returns:
item

clearSubSections

public void clearSubSections()
Remove all 'SubSection' element items.


getRuleReqInfoLanguageRequested

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

Returns:
value

setRuleReqInfoLanguageRequested

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

Parameters:
ruleReqInfoLanguageRequested -

getRuleReqInfoAbbreviatedRuleTextInd

public java.lang.Boolean getRuleReqInfoAbbreviatedRuleTextInd()
Get the 'AbbreviatedRuleTextInd' attribute value. When true, the abbreviated rule text should be returned, not the full rule text.

Returns:
value

setRuleReqInfoAbbreviatedRuleTextInd

public void setRuleReqInfoAbbreviatedRuleTextInd(java.lang.Boolean ruleReqInfoAbbreviatedRuleTextInd)
Set the 'AbbreviatedRuleTextInd' attribute value. When true, the abbreviated rule text should be returned, not the full rule text.

Parameters:
ruleReqInfoAbbreviatedRuleTextInd -

getOTAPayloadStdAttributes

public OTAPayloadStdAttributes getOTAPayloadStdAttributes()
Get the 'OTA_PayloadStdAttributes' attributeGroup value.

Returns:
value

setOTAPayloadStdAttributes

public void setOTAPayloadStdAttributes(OTAPayloadStdAttributes OTAPayloadStdAttributes)
Set the 'OTA_PayloadStdAttributes' attributeGroup value.

Parameters:
OTAPayloadStdAttributes -