public class Language extends Object implements Serializable
RFC 3066: Tags for the Identification of Languages http://www.ietf.org/rfc/rfc3066.txt ISO 639: Codes for the Representation of Names of Languages http://www.loc.gov/standards/iso639-2/englangn.html ISO 3166: Codes for Country Names http://www.iso.org/iso/en/prods-services/iso3166ma/02iso-3166-code-lists/list-en1.html IANA LANGUAGE TAGS http://www.iana.org/assignments/language-tags
ISO639_1
,
ISO639_2
,
ISO3166
,
IANALanguageTags
,
LangridLanguageTags
,
Serialized FormModifier and Type | Method and Description |
---|---|
boolean |
equals(Language value) |
boolean |
equals(Object value) |
static Language |
get(LanguageTag language) |
static Language |
get(LanguageTag language,
CountryName country,
String... additionals) |
static Language |
get(LanguageTag language,
String countryOrCharset,
String... additionals) |
String |
getCode() |
String |
getLocalizedName(Locale locale) |
int |
hashCode() |
boolean |
isDeprecated() |
boolean |
matches(Language value) |
static Language |
parse(String expression) |
String |
toString() |
public Language(String expression) throws InvalidLanguageTagException
InvalidLanguageTagException
public boolean equals(Language value)
public boolean isDeprecated()
public String getCode()
public boolean matches(Language value)
public static Language get(LanguageTag language)
public static Language get(LanguageTag language, CountryName country, String... additionals) throws InvalidLanguageTagError
InvalidLanguageTagError
public static Language get(LanguageTag language, String countryOrCharset, String... additionals) throws InvalidLanguageTagError
InvalidLanguageTagError
public static Language parse(String expression) throws InvalidLanguageTagException
InvalidLanguageTagException