org.ota.air
Class FareDisplayRS

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

public class FareDisplayRS
extends java.lang.Object

Response message contains the various fares for a given origin and destination, including some general fare conditions (e.g., minimum/maximum stay). 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_AirFareDisplayRS">
   <xs:complexType>
     <xs:choice>
       <xs:sequence>
         <xs:element type="ns:SuccessType" name="Success"/>
         <xs:element type="ns:WarningsType" name="Warnings" minOccurs="0"/>
         <xs:element name="FareDisplayInfos" minOccurs="0">
           <!-- Reference to inner class FareDisplayInfos -->
         </xs:element>
         <xs:element name="OtherFareInformation" minOccurs="0">
           <!-- Reference to inner class OtherFareInformation -->
         </xs:element>
         <xs:element name="ExchangeRates" minOccurs="0">
           <!-- Reference to inner class ExchangeRates -->
         </xs:element>
         <xs:element type="ns:FreeTextType" name="AdvisoryInfo" minOccurs="0" maxOccurs="5"/>
       </xs:sequence>
       <xs:element type="ns:ErrorsType" name="Errors"/>
     </xs:choice>
     <xs:attributeGroup ref="ns:OTA_PayloadStdAttributes"/>
   </xs:complexType>
 </xs:element>
 
 <xs:complexType xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="SuccessType"/>
 


Nested Class Summary
static class FareDisplayRS.ExchangeRates
          Container for exchange rates.
static class FareDisplayRS.FareDisplayInfos
          Container for multiple returned FareDisplayInfo elements Schema fragment(s) for this class:
static class FareDisplayRS.OtherFareInformation
          Container for information relating to fare contracts that have not been returned in this message Schema fragment(s) for this class:
 
Constructor Summary
FareDisplayRS()
           
 
Method Summary
 void addAdvisoryInfo(FreeText item)
          Add a 'AdvisoryInfo' element item.
 void clearAdvisoryInfos()
          Remove all 'AdvisoryInfo' element items.
 void clearChoiceSelect()
          Clear the choice selection.
 FreeText getAdvisoryInfo(int index)
          Get 'AdvisoryInfo' element item by position.
 java.util.List<FreeText> getAdvisoryInfos()
          Get the list of 'AdvisoryInfo' element items.
 Errors getErrors()
          Get the 'Errors' element value.
 FareDisplayRS.ExchangeRates getExchangeRates()
          Get the 'ExchangeRates' element value.
 FareDisplayRS.FareDisplayInfos getFareDisplayInfos()
          Get the 'FareDisplayInfos' element value.
 OTAPayloadStdAttributes getOTAPayloadStdAttributes()
          Get the 'OTA_PayloadStdAttributes' attributeGroup value.
 FareDisplayRS.OtherFareInformation getOtherFareInformation()
          Get the 'OtherFareInformation' element value.
 Warnings getWarnings()
          Get the 'Warnings' element value.
 boolean ifErrors()
          Check if Errors is current selection for choice.
 boolean ifSuccess()
          Check if Success is current selection for choice.
 void setAdvisoryInfos(java.util.List<FreeText> list)
          Set the list of 'AdvisoryInfo' element items.
 void setErrors(Errors errors)
          Set the 'Errors' element value.
 void setExchangeRates(FareDisplayRS.ExchangeRates exchangeRates)
          Set the 'ExchangeRates' element value.
 void setFareDisplayInfos(FareDisplayRS.FareDisplayInfos fareDisplayInfos)
          Set the 'FareDisplayInfos' element value.
 void setOTAPayloadStdAttributes(OTAPayloadStdAttributes OTAPayloadStdAttributes)
          Set the 'OTA_PayloadStdAttributes' attributeGroup value.
 void setOtherFareInformation(FareDisplayRS.OtherFareInformation otherFareInformation)
          Set the 'OtherFareInformation' element value.
 void setWarnings(Warnings warnings)
          Set the 'Warnings' element value.
 int sizeAdvisoryInfos()
          Get the number of 'AdvisoryInfo' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FareDisplayRS

public FareDisplayRS()
Method Detail

clearChoiceSelect

public void clearChoiceSelect()
Clear the choice selection.


ifSuccess

public boolean ifSuccess()
Check if Success is current selection for choice.

Returns:
true if selection, false if not

getWarnings

public Warnings getWarnings()
Get the 'Warnings' element value. Standard way to indicate successful processing of an OpenTravel message, but one in which warnings are generated.

Returns:
value

setWarnings

public void setWarnings(Warnings warnings)
Set the 'Warnings' element value. Standard way to indicate successful processing of an OpenTravel message, but one in which warnings are generated.

Parameters:
warnings -

getFareDisplayInfos

public FareDisplayRS.FareDisplayInfos getFareDisplayInfos()
Get the 'FareDisplayInfos' element value.

Returns:
value

setFareDisplayInfos

public void setFareDisplayInfos(FareDisplayRS.FareDisplayInfos fareDisplayInfos)
Set the 'FareDisplayInfos' element value.

Parameters:
fareDisplayInfos -

getOtherFareInformation

public FareDisplayRS.OtherFareInformation getOtherFareInformation()
Get the 'OtherFareInformation' element value.

Returns:
value

setOtherFareInformation

public void setOtherFareInformation(FareDisplayRS.OtherFareInformation otherFareInformation)
Set the 'OtherFareInformation' element value.

Parameters:
otherFareInformation -

getExchangeRates

public FareDisplayRS.ExchangeRates getExchangeRates()
Get the 'ExchangeRates' element value.

Returns:
value

setExchangeRates

public void setExchangeRates(FareDisplayRS.ExchangeRates exchangeRates)
Set the 'ExchangeRates' element value.

Parameters:
exchangeRates -

getAdvisoryInfos

public java.util.List<FreeText> getAdvisoryInfos()
Get the list of 'AdvisoryInfo' element items. Advisory information related to all the fare information.

Returns:
list

setAdvisoryInfos

public void setAdvisoryInfos(java.util.List<FreeText> list)
Set the list of 'AdvisoryInfo' element items. Advisory information related to all the fare information.

Parameters:
list -

sizeAdvisoryInfos

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

Returns:
count

addAdvisoryInfo

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

Parameters:
item -

getAdvisoryInfo

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

Parameters:
index -
Returns:
item

clearAdvisoryInfos

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


ifErrors

public boolean ifErrors()
Check if Errors is current selection for choice.

Returns:
true if selection, false if not

getErrors

public Errors getErrors()
Get the 'Errors' element value. A collection of errors that occurred during the processing of a message.

Returns:
value

setErrors

public void setErrors(Errors errors)
Set the 'Errors' element value. A collection of errors that occurred during the processing of a message.

Parameters:
errors -

getOTAPayloadStdAttributes

public OTAPayloadStdAttributes getOTAPayloadStdAttributes()
Get the 'OTA_PayloadStdAttributes' attributeGroup value. The OTA_PayloadStdAttributes defines the standard attributes that appear on the root element for all OpenTravel messages.

Returns:
value

setOTAPayloadStdAttributes

public void setOTAPayloadStdAttributes(OTAPayloadStdAttributes OTAPayloadStdAttributes)
Set the 'OTA_PayloadStdAttributes' attributeGroup value. The OTA_PayloadStdAttributes defines the standard attributes that appear on the root element for all OpenTravel messages.

Parameters:
OTAPayloadStdAttributes -