common
Class FlightSelection

java.lang.Object
  |
  +--common.FlightSelection
All Implemented Interfaces:
Serializable

public class FlightSelection
extends Object
implements Serializable

The choices made by the customer wrt flights to be reserved.

Author:
Team Two: Matthew Bass, Vijay Sai, Mannik Bhojwani, Paulo Merson
See Also:
Serialized Form

Constructor Summary
FlightSelection()
           
 
Method Summary
 String getBookingPassenger()
          Returns the bookingPasssenger.
 Date getDepartDate()
          Returns the departDate.
 FlightValue getDepartingFlight()
          Returns the departingFlight.
 int getNumberOfPassengers()
          Returns the numberOfPassengers.
 Date getReturnDate()
          Returns the returnDate.
 FlightValue getReturningFlight()
          Returns the returningFlight.
 boolean isTwoWay()
          Returns the isTwoWay.
 boolean isValid()
          Performs field level validation of the FlighSelection
 void setBookingPasssenger(String bookingPassenger)
          Sets the bookingPasssenger.
 void setDepartDate(Date departDate)
          Sets the departDate.
 void setDepartingFlight(FlightValue departingFlight)
          Sets the departingFlight.
 void setIsTwoWay(boolean isTwoWay)
          Sets the isTwoWay.
 void setNumberOfPassengers(int numberOfPassengers)
          Sets the numberOfPassengers.
 void setReturnDate(Date returnDate)
          Sets the returnDate.
 void setReturningFlight(FlightValue returningFlight)
          Sets the returningFlight.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlightSelection

public FlightSelection()
Method Detail

getDepartDate

public Date getDepartDate()
Returns the departDate.
Returns:
Date

getDepartingFlight

public FlightValue getDepartingFlight()
Returns the departingFlight.
Returns:
FlightValue

isTwoWay

public boolean isTwoWay()
Returns the isTwoWay.
Returns:
boolean

getNumberOfPassengers

public int getNumberOfPassengers()
Returns the numberOfPassengers.
Returns:
int

getReturnDate

public Date getReturnDate()
Returns the returnDate.
Returns:
Date

getReturningFlight

public FlightValue getReturningFlight()
Returns the returningFlight.
Returns:
FlightValue

setDepartDate

public void setDepartDate(Date departDate)
Sets the departDate.
Parameters:
departDate - The departDate to set

setDepartingFlight

public void setDepartingFlight(FlightValue departingFlight)
Sets the departingFlight.
Parameters:
departingFlight - The departingFlight to set

setIsTwoWay

public void setIsTwoWay(boolean isTwoWay)
Sets the isTwoWay.
Parameters:
isTwoWay - The isTwoWay to set

setNumberOfPassengers

public void setNumberOfPassengers(int numberOfPassengers)
Sets the numberOfPassengers.
Parameters:
numberOfPassengers - The numberOfPassengers to set

setReturnDate

public void setReturnDate(Date returnDate)
Sets the returnDate.
Parameters:
returnDate - The returnDate to set

setReturningFlight

public void setReturningFlight(FlightValue returningFlight)
Sets the returningFlight.
Parameters:
returningFlight - The returningFlight to set

getBookingPassenger

public String getBookingPassenger()
Returns the bookingPasssenger.
Returns:
String

setBookingPasssenger

public void setBookingPasssenger(String bookingPassenger)
Sets the bookingPasssenger.
Parameters:
String - The bookingPasssenger to set

isValid

public boolean isValid()
Performs field level validation of the FlighSelection
Returns:
boolean - true if the fields have acceptable values, false otherwise


Copyright © 2003 Team Two.