instead
@Deprecated 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)
Deprecated.
Creates new RFC3066 LanguageTag.
|
Modifier and Type | Method and Description |
---|---|
Iso3166 |
getCountry()
Deprecated.
|
Iso639 |
getLanguage()
Deprecated.
|
String |
getVariant()
Deprecated.
|
boolean |
hasCountry()
Deprecated.
|
boolean |
hasLanguage()
Deprecated.
|
boolean |
hasVariant()
Deprecated.
|
Locale |
toLocale()
Deprecated.
|
String |
toString()
Deprecated.
|
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.public boolean hasLanguage()
public Iso639 getLanguage()
public boolean hasCountry()
public Iso3166 getCountry()
public boolean hasVariant()
public String getVariant()
public Locale toLocale()
Copyright © 2015-2019 Eclipse Foundation. All Rights Reserved.