@CompileStatic class CommonConstants extends Object
Constants to be used from any module of the project.
Modifiers | Name | Description |
---|---|---|
static String |
NOT_AVAILABLE |
Used when string value represents that something is missing. |
static String |
REGEX_UN_LO_CODE |
Regex for verifying if string complies to UN/LOCODE format. |
static String |
REGEX_UUID_FORMAT |
Regex for verifying if string complies to UUID format. |
Constructor and description |
---|
CommonConstants() |
Used when string value represents that something is missing.
Regex for verifying if string complies to UN/LOCODE format.
Useful reference: https://service.unece.org/trade/locode/Service/LocodeColumn.htm - Section "1.2 Column LOCODE". The two first digits indicates the country in which the place is located. The values used concur with the ISO 3166 alpha-2 Country Code. In cases where no ISO 3166 country code element is available, e.g. installations in international waters or international cooperation zones, the code element "XZ" will be used. Next part contains a 3-character code for the location. The 3-character code element for the location will normally comprise three letters. However, where all permutations available for a country have been exhausted, the numerals 2-9 may also be used.Regex for verifying if string complies to UUID format.