org.ota.air
Class AirItinerary.OriginDestinationOption

java.lang.Object
  extended by org.ota.air.AirItinerary.OriginDestinationOption
Enclosing class:
AirItinerary

public static class AirItinerary.OriginDestinationOption
extends java.lang.Object

A container for OriginDestinationOptionType. 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="OriginDestinationOption" maxOccurs="99">
   <xs:complexType>
     <xs:complexContent>
       <xs:extension base="ns:OriginDestinationOptionType">
         <xs:attribute type="xs:int" use="optional" name="RefNumber"/>
       </xs:extension>
     </xs:complexContent>
   </xs:complexType>
 </xs:element>
 
 <xs:complexType xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="OriginDestinationOptionType">
   <xs:sequence>
     <xs:element name="FlightSegment" maxOccurs="8">
       <!-- Reference to inner class FlightSegment -->
     </xs:element>
   </xs:sequence>
 </xs:complexType>
 


Nested Class Summary
static class AirItinerary.OriginDestinationOption.FlightSegment
          A container for necessary data to describe one or more legs of a single flight number.
 
Constructor Summary
AirItinerary.OriginDestinationOption()
           
 
Method Summary
 void addFlightSegment(AirItinerary.OriginDestinationOption.FlightSegment item)
          Add a 'FlightSegment' element item.
 void clearFlightSegments()
          Remove all 'FlightSegment' element items.
 AirItinerary.OriginDestinationOption.FlightSegment getFlightSegment(int index)
          Get 'FlightSegment' element item by position.
 java.util.List<AirItinerary.OriginDestinationOption.FlightSegment> getFlightSegments()
          Get the list of 'FlightSegment' element items.
 java.lang.Integer getRefNumber()
          Get the 'RefNumber' attribute value.
 void setFlightSegments(java.util.List<AirItinerary.OriginDestinationOption.FlightSegment> list)
          Set the list of 'FlightSegment' element items.
 void setRefNumber(java.lang.Integer refNumber)
          Set the 'RefNumber' attribute value.
 int sizeFlightSegments()
          Get the number of 'FlightSegment' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AirItinerary.OriginDestinationOption

public AirItinerary.OriginDestinationOption()
Method Detail

getFlightSegments

public java.util.List<AirItinerary.OriginDestinationOption.FlightSegment> getFlightSegments()
Get the list of 'FlightSegment' element items. A container for flight segments.

Returns:
list

setFlightSegments

public void setFlightSegments(java.util.List<AirItinerary.OriginDestinationOption.FlightSegment> list)
Set the list of 'FlightSegment' element items. A container for flight segments.

Parameters:
list -

sizeFlightSegments

public int sizeFlightSegments()
Get the number of 'FlightSegment' element items.

Returns:
count

addFlightSegment

public void addFlightSegment(AirItinerary.OriginDestinationOption.FlightSegment item)
Add a 'FlightSegment' element item.

Parameters:
item -

getFlightSegment

public AirItinerary.OriginDestinationOption.FlightSegment getFlightSegment(int index)
Get 'FlightSegment' element item by position.

Parameters:
index -
Returns:
item

clearFlightSegments

public void clearFlightSegments()
Remove all 'FlightSegment' element items.


getRefNumber

public java.lang.Integer getRefNumber()
Get the 'RefNumber' attribute value. When a PricedItinerary element contains multiple solutions and a single price, this attribute identifies the OriginDestinationPair from the request.

Returns:
value

setRefNumber

public void setRefNumber(java.lang.Integer refNumber)
Set the 'RefNumber' attribute value. When a PricedItinerary element contains multiple solutions and a single price, this attribute identifies the OriginDestinationPair from the request.

Parameters:
refNumber -