AI-generated Key Takeaways
-
TrackingNumberEntity
extracts parcel tracking numbers and their associated carriers from text. -
It provides the carrier through
getParcelCarrier()
and a standardized tracking number viagetParcelTrackingNumber()
. -
Supported carriers include FedEx, UPS, DHL, USPS, and more, represented by constants like
CARRIER_FEDEX
. -
TrackingNumberEntity
inherits fromEntity
, offering access to methods likeasDateTimeEntity()
for type casting.
A parcel tracking number entity extracted from a piece of text. It provides the carrier associated with the parcel and a canonical format for the tracking number.
Nested Class Summary
@interface | TrackingNumberEntity.ParcelTrackingCarrier | The list of supported carriers that could be detected (e.g. |
Constant Summary
int | CARRIER_AMAZON | |
int | CARRIER_DHL | |
int | CARRIER_FEDEX | |
int | CARRIER_ISRAEL_POST | |
int | CARRIER_I_PARCEL | |
int | CARRIER_LASERSHIP | |
int | CARRIER_MSC | |
int | CARRIER_ONTRAC | |
int | CARRIER_SWISS_POST | |
int | CARRIER_UNKNOWN | |
int | CARRIER_UPS | |
int | CARRIER_USPS |
Inherited Constant Summary
Public Method Summary
int |
getParcelCarrier()
Returns the parcel carrier (e.g.
|
String |
getParcelTrackingNumber()
Returns the parcel tracking number detected for this entity but canonically
formatted.
|
Inherited Method Summary
Constants
public static final int CARRIER_AMAZON
public static final int CARRIER_DHL
public static final int CARRIER_FEDEX
public static final int CARRIER_ISRAEL_POST
public static final int CARRIER_I_PARCEL
public static final int CARRIER_LASERSHIP
public static final int CARRIER_MSC
public static final int CARRIER_ONTRAC
public static final int CARRIER_SWISS_POST
public static final int CARRIER_UNKNOWN
public static final int CARRIER_UPS
public static final int CARRIER_USPS
Public Methods
public int getParcelCarrier ()
Returns the parcel carrier (e.g.
CARRIER_FEDEX
) detected for this entity.
public String getParcelTrackingNumber ()
Returns the parcel tracking number detected for this entity but canonically formatted.