|
Golibri | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.golibri.iso.Alpha2LanguageCodes
The Alpha2LanguageCodes class contains all alpha-2 language codes as specified by the ISO 639 Standard.
The class allows to create Alpha2LanguageCode objects that are verified againsts the existing
set of alpha-2 language codes in the ISO 639 Standard.
The full set of alpha-2 language codes can be found in the resource file org/golibri/iso/languagecodes.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 Alpha2LanguageCodes class is for working specifically with alpha-2 language codes.
The preferred way to represent languages is with org.golibri.common.Language.
Alpha2LanguageCode,
Language| Constructor Summary | |
Alpha2LanguageCodes()
|
|
| Method Summary | |
static boolean |
exists(Alpha2LanguageCode alpha2LanguageCode)
Static method to check whether an alpha-2 language code exists. |
static boolean |
exists(java.lang.String alpha2LanguageCode)
Static method to check whether an alpha-2 language code exists. |
static Alpha2LanguageCode |
getAlpha2LanguageCode(java.lang.String alpha2LanguageCode)
Static factory method to create alpha-2 language code objects. |
static Alpha2LanguageCode[] |
getAlpha2LanguageCodes()
Static method that returns all existing alpha-2 language codes. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Alpha2LanguageCodes()
| Method Detail |
public static Alpha2LanguageCode getAlpha2LanguageCode(java.lang.String alpha2LanguageCode)
alpha2LanguageCode - String parameter containing the alpha-2 language code
java.lang.NullPointerException - If the parameter alpha2LanguageCode is null
java.lang.IllegalArgumentException - If the parameter alpha2LanguageCode is not well-formatted or does not exist in the ISO 639 Standardpublic static Alpha2LanguageCode[] getAlpha2LanguageCodes()
public static boolean exists(Alpha2LanguageCode alpha2LanguageCode)
alpha2LanguageCode - The alpha-2 language code that needs to be checked
public static boolean exists(java.lang.String alpha2LanguageCode)
alpha2LanguageCode - The alpha-2 language code that needs to be checked
|
Golibri | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||