|
Golibri | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.golibri.iso.Alpha3CountryCodes
The Alpha3CountryCodes class contains all alpha-3 country codes as specified by the ISO 3166 Standard.
The class allows to create Alpha3CountryCode objects that are verified againsts the existing
set of alpha-3 country codes in the ISO 3166 Standard.
The full set of alpha-3 country codes can be found in the resource file org/golibri/iso/countrycodes.xml.
This resource file can be found in the zip-file golibri-resources.zip which comes with each golibri
distribution. If needed the XML-file can be updated or changed to serve your own needs.
The Alpha3CountryCodes class is for working specifically with alpha-3 country codes.
The preferred way to represent countries is with org.golibri.common.contact.Country.
Alpha3CountryCode,
Country| Constructor Summary | |
Alpha3CountryCodes()
|
|
| Method Summary | |
static boolean |
exists(Alpha3CountryCode countryCode)
Method to check whether an alpha-3 country code exists. |
static boolean |
exists(java.lang.String countryCode)
Method to check whether an alpha-2 country code exists. |
static Alpha3CountryCode |
getCountryCode(java.lang.String countryCode)
Factory method to create alpha-3 country code objects. |
static Alpha3CountryCode[] |
getCountryCodes()
Static method that returns all existing alpha-3 country codes. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Alpha3CountryCodes()
| Method Detail |
public static Alpha3CountryCode getCountryCode(java.lang.String countryCode)
countryCode - String parameter containing the alpha-3 country code
java.lang.NullPointerException - If the parameter countryCode is null
java.lang.IllegalArgumentException - If the parameter countryCode is not well-formatted or does not exist in the ISO 3166 Standardpublic static Alpha3CountryCode[] getCountryCodes()
public static boolean exists(Alpha3CountryCode countryCode)
countryCode - The alpha-3 country code that needs to be checked
public static boolean exists(java.lang.String countryCode)
countryCode - The country code that needs to be checked
|
Golibri | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||