T - the class of the parent builder. Used for casting before returning
it.public class FlightInfoBuilder<T extends FlightInfoBuilderDelegator> extends Object
FlightInfo object.| Modifier and Type | Method and Description |
|---|---|
T |
endFlightInfo()
Builds the current object, adds it to the parent builder and returns the
parent builder.
|
FlightInfoBuilder<T> |
setArrivalAirport(Airport airport)
Sets the arrival
Airport for the current FlightInfo
object. |
FlightInfoBuilder<T> |
setArrivalAirport(String airportCode,
String city)
Sets the arrival
Airport for the current FlightInfo
object. |
FlightInfoBuilder<T> |
setArrivalAirport(String airportCode,
String city,
String gate,
String terminal)
Sets the arrival
Airport for the current FlightInfo
object. |
FlightInfoBuilder<T> |
setDepartureAirport(Airport airport)
Sets the departure
Airport for the current FlightInfo
object. |
FlightInfoBuilder<T> |
setDepartureAirport(String airportCode,
String city)
Sets the departure
Airport for the current FlightInfo
object. |
FlightInfoBuilder<T> |
setDepartureAirport(String airportCode,
String city,
String gate,
String terminal)
Sets the departure
Airport for the current FlightInfo
object. |
FlightInfoBuilder<T> |
setFlightSchedule(Calendar departureTime,
Calendar arrivalTime)
Sets the
FlightSchedule object for the current FlightInfo
object. |
FlightInfoBuilder<T> |
setFlightSchedule(Calendar departureTime,
Calendar arrivalTime,
Calendar boardingTime)
Sets the
FlightSchedule object for the current FlightInfo
object. |
FlightInfoBuilder<T> |
setFlightSchedule(FlightSchedule flightSchedule)
Sets the
FlightSchedule object for the current FlightInfo
object. |
String |
toString() |
public FlightInfoBuilder<T> setDepartureAirport(String airportCode, String city, String gate, String terminal)
Airport for the current FlightInfo
object. This field is mandatory for this object and can't be null.airportCode - the airport code. It can't be empty.city - the city name. The city will be displayed over the airport
code in the template. It can't be empty.gate - the airport gate. This field is optional.terminal - the airport terminal. This field is optional.public FlightInfoBuilder<T> setDepartureAirport(String airportCode, String city)
Airport for the current FlightInfo
object. This field is mandatory for this object and can't be null.airportCode - the airport code. It can't be empty.city - the city name. The city will be displayed over the airport
code in the template. It can't be empty.public FlightInfoBuilder<T> setDepartureAirport(Airport airport)
Airport for the current FlightInfo
object. This field is mandatory for this object and can't be null.airport - the departure airport. It can't be null.public FlightInfoBuilder<T> setArrivalAirport(String airportCode, String city, String gate, String terminal)
Airport for the current FlightInfo
object. This field is mandatory for this object and can't be null.airportCode - the airport code. It can't be empty.city - the city name. The city will be displayed over the airport
code in the template. It can't be empty.gate - the airport gate. This field is optional.terminal - the airport terminal. This field is optional.public FlightInfoBuilder<T> setArrivalAirport(String airportCode, String city)
Airport for the current FlightInfo
object. This field is mandatory for this object and can't be null.airportCode - the airport code. It can't be empty.city - the city name. The city will be displayed over the airport
code in the template. It can't be empty.public FlightInfoBuilder<T> setArrivalAirport(Airport airport)
Airport for the current FlightInfo
object. This field is mandatory for this object and can't be null.airport - the arrival airport. It can't be null.public FlightInfoBuilder<T> setFlightSchedule(Calendar departureTime, Calendar arrivalTime)
FlightSchedule object for the current FlightInfo
object. This field is mandatory for this object and can't be null.departureTime - the departure time. It can't be null.arrivalTime - the arrival time. It can't be null.public FlightInfoBuilder<T> setFlightSchedule(Calendar departureTime, Calendar arrivalTime, Calendar boardingTime)
FlightSchedule object for the current FlightInfo
object. This field is mandatory for this object and can't be null.departureTime - the departure time. It can't be null.arrivalTime - the arrival time. It can't be null.boardingTime - the boarding time. This field is optional.public FlightInfoBuilder<T> setFlightSchedule(FlightSchedule flightSchedule)
FlightSchedule object for the current FlightInfo
object. This field is mandatory for this object and can't be null.flightSchedule - the flight schedule to set. It can't be null.public T endFlightInfo()
Copyright © 2017 BotMill. All rights reserved.