AI-generated Key Takeaways
-
FlightNumberEntity is used to represent flight numbers extracted from text, providing the airline and flight number.
-
It inherits from the Entity class and includes methods to get the airline code and the flight number.
-
The Entity class provides various types to identify different entities like addresses, dates, emails, and more, with TYPE_FLIGHT_NUMBER specifically for flight numbers in IATA format.
-
The FlightNumberEntity class has public methods
getAirlineCode()
andgetFlightNumber()
to retrieve the detected airline designator and flight number respectively.
A flight number entity extracted from a piece of text. It provides the detected values for the airline and flight number.
Inherited Constant Summary
Public Method Summary
String |
getAirlineCode()
Returns the IATA airline designator detected for this entity (two or three
letters String).
|
String |
getFlightNumber()
Returns the flight number detected for this entity (1 to 4 digit number,
represented as a String).
|
Inherited Method Summary
Public Methods
public String getAirlineCode ()
Returns the IATA airline designator detected for this entity (two or three letters String).
public String getFlightNumber ()
Returns the flight number detected for this entity (1 to 4 digit number, represented as a String).