All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.beans.demos.travel.flight.FlightInformation

java.lang.Object
   |
   +----com.ibm.beans.demos.travel.flight.FlightInformation

public class FlightInformation
extends Object
implements Serializable

This class contains flight information. Vectors of this class are used in the following events: FlightInfoEvent, FlightReservedEvent, and FlightRequestedEvent.

See Also:
FlightInfoEvent, FlightReservedEvent, FlightRequestedEvent

Constructor Index

 o FlightInformation(String, String, String, String, String, String, String, String, String, double, String, boolean, String, String, String, String, String, String, String, double, String, String, String, String, String, String, String, String, String, String, String)
Constructs a new instance containing Flight Information.

Method Index

 o getAirline()
Accessor (get) method for the airline.
 o getAirline2()
Accessor (get) method for the connecting airline.
 o getAirportCodeEndCity()
Accessor (get) method for the the airport code for the city where the flight ends.
 o getAirportCodeEndCity2()
Accessor (get) method for the airport code for the city where the connecting flight ends.
 o getAirportCodeStartCity()
Accessor (get) method for the the airport code of the origin city of the entire trip.
 o getArriveTime()
Accessor (get) method for the arrival time of the flight.
 o getArriveTime2()
Accessor (get) method for the arrival time of the final connecting flight if one exists.
 o getbHasConnection()
Accessor (get) method for the property that describes whether this itinerary calls for a connecting flight.
 o getCity()
Accessor (get) method for the city where the passenger lives.
 o getDepartTime()
Accessor (get) method for the departure time of the flight.
 o getDepartTime2()
Accessor (get) method for the departure time of the connecting flight if one exists.
 o getEndCity()
Accessor (get) method for the city where the flight ends.
 o getEndCity2()
Accessor (get) method for the city where the connecting flight ends.
 o getFirstName()
Accessor (get) method for the first name of the passenger.
 o getFlightNum()
Accessor (get) method for the flight number.
 o getFlightNum2()
Accessor (get) method for the connecting flight number.
 o getFrequentFlyerNum()
Accessor (get) method for the frequent flyer number of the passenger.
 o getImageCaption()
Accessor (get) method for the location of the image caption that will be used for display by the DetailInfo bean.
 o getImageLocation()
Accessor (get) method for the location of the image that will be used for display by the DetailInfo bean.
 o getLastName()
Accessor (get) method for the last name of the passenger.
 o getPhone()
Accessor (get) method for the home phone number of the passenger.
 o getPrice()
Accessor (get) method for the price of the flight.
 o getPrice2()
Accessor (get) method for the price of the connecting flight.
 o getSeatNum()
Accessor (get) method for the assigned seat number for the flight.
 o getSeatNum2()
Accessor (get) method for the assigned seat number for the connecting flight.
 o getStartCity()
Accessor (get) method for the origin city of the entire trip.
 o getState()
Accessor (get) method for the state where the passenger lives.
 o getStreet()
Accessor (get) method for the street address of the passenger.
 o getWhichClass()
Accessor (get) method for the seating class (Business Class, First Class, or Economy Class).
 o getWhichClass2()
Accessor (get) method for the seating class for the connecting flight (Business Class, First Class, or Economy Class).
 o getZip()
Accessor (get) method for the zip code where the passenger lives.

Constructors

 o FlightInformation
 public FlightInformation(String airline,
                          String flightNum,
                          String startCity,
                          String airportCodeStartCity,
                          String endCity,
                          String airportCodeEndCity,
                          String whichClass,
                          String departTime,
                          String arriveTime,
                          double price,
                          String seatNum,
                          boolean bHasConnection,
                          String airline2,
                          String flightNum2,
                          String endCity2,
                          String airportCodeEndCity2,
                          String whichClass2,
                          String departTime2,
                          String arriveTime2,
                          double price2,
                          String seatNum2,
                          String firstName,
                          String lastName,
                          String street,
                          String city,
                          String state,
                          String zip,
                          String phone,
                          String frequentFlyerNum,
                          String imageLocation,
                          String imageCaption)
Constructs a new instance containing Flight Information. Note that only one instance of the class is used in the Vectors of the FlightReservedEvent and the FlightRequestedEvent. Descriptions of each field are found in the accessor method for that field.

Methods

 o getAirline
 public String getAirline()
Accessor (get) method for the airline. Note that if the bHasConnection property is true, this property refers to the first leg of a two-leg connecting flight scenario.

Returns:
The current value of the airline property.
 o getFlightNum
 public String getFlightNum()
Accessor (get) method for the flight number. Note that if the bHasConnection property is true, this property refers to the first leg of a two-leg connecting flight scenario.

Returns:
The current value of the flight number.
 o getStartCity
 public String getStartCity()
Accessor (get) method for the origin city of the entire trip. Note that if the bHasConnection property is true, this property refers to the first leg of a two-leg connecting flight scenario.

Returns:
The current value of the starting city.
 o getAirportCodeStartCity
 public String getAirportCodeStartCity()
Accessor (get) method for the the airport code of the origin city of the entire trip. Note that if the bHasConnection property is true, this property refers to the first leg of a two-leg connecting flight scenario.

Returns:
The current value of the airport code of the starting city.
 o getEndCity
 public String getEndCity()
Accessor (get) method for the city where the flight ends. Note that if the bHasConnection property is true, this property refers to the first leg of a two-leg connecting flight scenario.

Returns:
The current value of the city where the flight ends.
 o getAirportCodeEndCity
 public String getAirportCodeEndCity()
Accessor (get) method for the the airport code for the city where the flight ends. Note that if the bHasConnection property is true, this property refers to the first leg of a two-leg connecting flight scenario.

Returns:
The current value of the airportCodeEndCity property.
 o getWhichClass
 public String getWhichClass()
Accessor (get) method for the seating class (Business Class, First Class, or Economy Class). Note that if the bHasConnection property is true, this property refers to the first leg of a two-leg connecting flight scenario.

Returns:
The current value of the whichClass property.
 o getDepartTime
 public String getDepartTime()
Accessor (get) method for the departure time of the flight. Note that if the bHasConnection property is true, this property refers to the first leg of a two-leg connecting flight scenario.

Returns:
The current value of the departTime property.
 o getArriveTime
 public String getArriveTime()
Accessor (get) method for the arrival time of the flight. Note that if the bHasConnection property is true, this property refers to the first leg of a two-leg connecting flight scenario.

Returns:
The current value of the arriveTime property.
 o getPrice
 public double getPrice()
Accessor (get) method for the price of the flight. Note that if the bHasConnection property is true, this property refers to the first leg of a two-leg connecting flight scenario.

Returns:
The current value of the price property.
 o getSeatNum
 public String getSeatNum()
Accessor (get) method for the assigned seat number for the flight. Note that if the bHasConnection property is true, this property refers to the first leg of a two-leg connecting flight scenario.

Returns:
The current value of the seatNum property.
 o getbHasConnection
 public boolean getbHasConnection()
Accessor (get) method for the property that describes whether this itinerary calls for a connecting flight.

Returns:
true if the itinerary calls for a connecting flight; false otherwise.
 o getAirline2
 public String getAirline2()
Accessor (get) method for the connecting airline. Note that this property is valid only if the bHasConnection property is true. This property refers to the second leg of a two-leg connecting flight scenario.

Returns:
The current value of the airline2 property.
 o getFlightNum2
 public String getFlightNum2()
Accessor (get) method for the connecting flight number. Note that this property is valid only if the bHasConnection property is true. This property refers to the second leg of a two-leg connecting flight scenario.

Returns:
The current value of the flightNum2 property.
 o getEndCity2
 public String getEndCity2()
Accessor (get) method for the city where the connecting flight ends. Note that this property is valid only if the bHasConnection property is true. This property refers to the second leg of a two-leg connecting flight scenario.

Returns:
The current value of the endCity2 property.
 o getAirportCodeEndCity2
 public String getAirportCodeEndCity2()
Accessor (get) method for the airport code for the city where the connecting flight ends. Note that this property is valid only if the bHasConnection property is true. This property refers to the second leg of a two-leg connecting flight scenario.

Returns:
The current value of the airportCodeEndCity2 property.
 o getWhichClass2
 public String getWhichClass2()
Accessor (get) method for the seating class for the connecting flight (Business Class, First Class, or Economy Class). Note that this property is valid only if the bHasConnection property is true. This property refers to the second leg of a two-leg connecting flight scenario.

Returns:
The current value of the whichClass2 property.
 o getDepartTime2
 public String getDepartTime2()
Accessor (get) method for the departure time of the connecting flight if one exists. Note that this property is valid only if the bHasConnection property is true. This property refers to the second leg of a two-leg connecting flight scenario.

Returns:
The current value of the departTime2 property.
 o getArriveTime2
 public String getArriveTime2()
Accessor (get) method for the arrival time of the final connecting flight if one exists. Note that this property is valid only if the bHasConnection property is true. This property refers to the second leg of a two-leg connecting flight scenario.

Returns:
The current value of the arriveTime2 property.
 o getPrice2
 public double getPrice2()
Accessor (get) method for the price of the connecting flight. Note that this property is valid only if the bHasConnection property is true. This property refers to the second leg of a two-leg connecting flight scenario.

Returns:
The current value of the price2 property.
 o getSeatNum2
 public String getSeatNum2()
Accessor (get) method for the assigned seat number for the connecting flight. Note that this property is valid only if the bHasConnection property is true. This property refers to the second leg of a two-leg connecting flight scenario.

Returns:
The current value of the seatNum2 property.
 o getFirstName
 public String getFirstName()
Accessor (get) method for the first name of the passenger.

Returns:
The current value of the firstName property.
 o getLastName
 public String getLastName()
Accessor (get) method for the last name of the passenger.

Returns:
The current value of the lastName property.
 o getStreet
 public String getStreet()
Accessor (get) method for the street address of the passenger.

Returns:
The current value of the street property.
 o getCity
 public String getCity()
Accessor (get) method for the city where the passenger lives.

Returns:
The current value of the city property.
 o getState
 public String getState()
Accessor (get) method for the state where the passenger lives.

Returns:
The current value of the state property.
 o getZip
 public String getZip()
Accessor (get) method for the zip code where the passenger lives.

Returns:
The current value of the zip property.
 o getPhone
 public String getPhone()
Accessor (get) method for the home phone number of the passenger.

Returns:
The current value of the phone property.
 o getFrequentFlyerNum
 public String getFrequentFlyerNum()
Accessor (get) method for the frequent flyer number of the passenger.

Returns:
The current value of the frequentFlyerNum property.
 o getImageLocation
 public String getImageLocation()
Accessor (get) method for the location of the image that will be used for display by the DetailInfo bean.

Returns:
The current value of the imageLocation property.
 o getImageCaption
 public String getImageCaption()
Accessor (get) method for the location of the image caption that will be used for display by the DetailInfo bean.

Returns:
The current value of the imageCaption property.

All Packages  Class Hierarchy  This Package  Previous  Next  Index