public class LanguageTag extends Object implements LanguageTagCodes
LT_DEFAULT, LT_EXTRA, LT_IANA, LT_IANA_DEPRECATED, LT_ILLEGAL, LT_ISO3166, LT_ISO639, LT_LOCAL_USE, LT_MULTIPLE, LT_PRIVATE_USE, LT_UNDETERMINED
Constructor and Description |
---|
LanguageTag(String tag)
Creates new RFC3066 LanguageTag.
|
Modifier and Type | Method and Description |
---|---|
Iso3166 |
getCountry() |
Iso639 |
getLanguage() |
String |
getVariant() |
boolean |
hasCountry() |
boolean |
hasLanguage() |
boolean |
hasVariant() |
Locale |
toLocale() |
String |
toString() |
public LanguageTag(String tag) throws LanguageTagSyntaxException
tag
- The tag to parse and analyse.LanguageTagSyntaxException
- If the syntactic rules of RFC3066 section 2.1 are broken.Copyright © 2001-2016 Aduna. All Rights Reserved.