org.ota.misc
Class ResRetrieveRS.ReservationsList.AirReservation

java.lang.Object
  extended by org.ota.misc.ResRetrieveRS.ReservationsList.AirReservation
Enclosing class:
ResRetrieveRS.ReservationsList

public static class ResRetrieveRS.ReservationsList.AirReservation
extends java.lang.Object

One line in a list of airline reservations. It may contain the PNR locator, flight segment information, traveler name, and itinerary name. 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="AirReservation" minOccurs="0" maxOccurs="unbounded">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:FlightSegmentType" name="FlightSegment" minOccurs="0"/>
       <xs:element type="ns:PersonNameType" name="TravelerName" minOccurs="0" maxOccurs="5"/>
       <xs:element ref="ns:TPA_Extensions" minOccurs="0"/>
     </xs:sequence>
     <xs:attribute type="xs:string" name="BookingReferenceID"/>
     <xs:attribute type="xs:dateTime" use="optional" name="DateBooked"/>
     <xs:attribute type="xs:string" use="optional" name="ItineraryName"/>
     <xs:attribute type="ns:TransactionStatusType" use="optional" name="Status"/>
   </xs:complexType>
 </xs:element>
 
 <xs:element xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" type="ns:TPA_ExtensionsType" name="TPA_Extensions"/>
 


Constructor Summary
ResRetrieveRS.ReservationsList.AirReservation()
           
 
Method Summary
 void addTravelerName(PersonName item)
          Add a 'TravelerName' element item.
 void clearTravelerNames()
          Remove all 'TravelerName' element items.
 java.lang.String getBookingReferenceID()
          Get the 'BookingReferenceID' attribute value.
 java.util.Date getDateBooked()
          Get the 'DateBooked' attribute value.
 FlightSegment getFlightSegment()
          Get the 'FlightSegment' element value.
 java.lang.String getItineraryName()
          Get the 'ItineraryName' attribute value.
 TransactionStatus getStatus()
          Get the 'Status' attribute value.
 TPAExtensions getTPAExtensions()
          Get the 'TPA_Extensions' element value.
 PersonName getTravelerName(int index)
          Get 'TravelerName' element item by position.
 java.util.List<PersonName> getTravelerNames()
          Get the list of 'TravelerName' element items.
 void setBookingReferenceID(java.lang.String bookingReferenceID)
          Set the 'BookingReferenceID' attribute value.
 void setDateBooked(java.util.Date dateBooked)
          Set the 'DateBooked' attribute value.
 void setFlightSegment(FlightSegment flightSegment)
          Set the 'FlightSegment' element value.
 void setItineraryName(java.lang.String itineraryName)
          Set the 'ItineraryName' attribute value.
 void setStatus(TransactionStatus status)
          Set the 'Status' attribute value.
 void setTPAExtensions(TPAExtensions TPAExtensions)
          Set the 'TPA_Extensions' element value.
 void setTravelerNames(java.util.List<PersonName> list)
          Set the list of 'TravelerName' element items.
 int sizeTravelerNames()
          Get the number of 'TravelerName' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResRetrieveRS.ReservationsList.AirReservation

public ResRetrieveRS.ReservationsList.AirReservation()
Method Detail

getFlightSegment

public FlightSegment getFlightSegment()
Get the 'FlightSegment' element value. The airline code, flight number, departure and arrival dates, and the origin and destination.

Returns:
value

setFlightSegment

public void setFlightSegment(FlightSegment flightSegment)
Set the 'FlightSegment' element value. The airline code, flight number, departure and arrival dates, and the origin and destination.

Parameters:
flightSegment -

getTravelerNames

public java.util.List<PersonName> getTravelerNames()
Get the list of 'TravelerName' element items. The names of travelers (up to five) in the reservation.

Returns:
list

setTravelerNames

public void setTravelerNames(java.util.List<PersonName> list)
Set the list of 'TravelerName' element items. The names of travelers (up to five) in the reservation.

Parameters:
list -

sizeTravelerNames

public int sizeTravelerNames()
Get the number of 'TravelerName' element items.

Returns:
count

addTravelerName

public void addTravelerName(PersonName item)
Add a 'TravelerName' element item.

Parameters:
item -

getTravelerName

public PersonName getTravelerName(int index)
Get 'TravelerName' element item by position.

Parameters:
index -
Returns:
item

clearTravelerNames

public void clearTravelerNames()
Remove all 'TravelerName' element items.


getTPAExtensions

public TPAExtensions getTPAExtensions()
Get the 'TPA_Extensions' element value. A placeholder in the schema to allow for additional elements and attributes to be included if required, per Trading Partner Agreement (TPA).

Returns:
value

setTPAExtensions

public void setTPAExtensions(TPAExtensions TPAExtensions)
Set the 'TPA_Extensions' element value. A placeholder in the schema to allow for additional elements and attributes to be included if required, per Trading Partner Agreement (TPA).

Parameters:
TPAExtensions -

getBookingReferenceID

public java.lang.String getBookingReferenceID()
Get the 'BookingReferenceID' attribute value. The reservation id number, PNR locator.

Returns:
value

setBookingReferenceID

public void setBookingReferenceID(java.lang.String bookingReferenceID)
Set the 'BookingReferenceID' attribute value. The reservation id number, PNR locator.

Parameters:
bookingReferenceID -

getDateBooked

public java.util.Date getDateBooked()
Get the 'DateBooked' attribute value. Date of the creation of this reservation.

Returns:
value

setDateBooked

public void setDateBooked(java.util.Date dateBooked)
Set the 'DateBooked' attribute value. Date of the creation of this reservation.

Parameters:
dateBooked -

getItineraryName

public java.lang.String getItineraryName()
Get the 'ItineraryName' attribute value. A name given to this itinerary.

Returns:
value

setItineraryName

public void setItineraryName(java.lang.String itineraryName)
Set the 'ItineraryName' attribute value. A name given to this itinerary.

Parameters:
itineraryName -

getStatus

public TransactionStatus getStatus()
Get the 'Status' attribute value. When true, this booking is cancelled.

Returns:
value

setStatus

public void setStatus(TransactionStatus status)
Set the 'Status' attribute value. When true, this booking is cancelled.

Parameters:
status -