FlightNumberEntity

  • 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() and getFlightNumber() to retrieve the detected airline designator and flight number respectively.

public final class FlightNumberEntity extends Entity

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).