|
Golibri | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.golibri.iso.Alpha2CountryCodes
The Alpha2CountryCodes class contains all alpha-2 country codes as specified by the ISO 3166 Standard.
The class allows to create Alpha2CountryCode objects that are verified againsts the existing
set of alpha-2 country codes in the ISO 3166 Standard.
The full set of alpha-2 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 Alpha2CountryCodes class is for working specifically with alpha-2 country codes.
The preferred way to represent countries is with org.golibri.common.contact.Country.
Alpha2CountryCode,
Country| Constructor Summary | |
Alpha2CountryCodes()
|
|
| Method Summary | |
static boolean |
exists(Alpha2CountryCode countryCode)
Method to check whether an alpha-2 country code exists. |
static boolean |
exists(java.lang.String countryCode)
Method to check whether an alpha-2 country code exists. |
static Alpha2CountryCode |
getCountryCode(java.lang.String countryCode)
Factory method to create alpha-2 country code objects. |
static Alpha2CountryCode[] |
getCountryCodes()
Static method that returns all existing alpha-2 country codes. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Alpha2CountryCodes()
| Method Detail |
public static Alpha2CountryCode getCountryCode(java.lang.String countryCode)
countryCode - String parameter containing the alpha-2 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 Alpha2CountryCode[] getCountryCodes()
public static boolean exists(Alpha2CountryCode countryCode)
countryCode - The alpha-2 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 | ||||||||||