public interface ReadOnlyLangTag
Language tag
.Modifier and Type | Method and Description |
---|---|
String[] |
getExtendedLanguageSubtags()
Gets the extended language subtags.
|
String[] |
getExtensions()
Gets the extensions.
|
String |
getLanguage()
Gets the language (primary language plus extended language subtags).
|
String |
getPrimaryLanguage()
Gets the primary language.
|
String |
getPrivateUse()
Gets the private use.
|
String |
getRegion()
Gets the region.
|
String |
getScript()
Gets the script.
|
String[] |
getVariants()
Gets the variants.
|
String |
toString()
Returns the canonical string representation of this language tag.
|
String getLanguage()
See RFC 5646 section 2.2.1.
Examples:
en de zh-cmn cmn
String getPrimaryLanguage()
See RFC 5646 section 2.2.1.
String[] getExtendedLanguageSubtags()
See RFC 5646 section 2.2.2.
null
if none.String getScript()
See RFC 5646 section 2.2.3.
null
if not defined.String getRegion()
See RFC 5646 section 2.2.4.
null
if not defined.String[] getVariants()
See RFC 5646 section 2.2.5.
null
if not defined.String[] getExtensions()
See RFC 5646 section 2.2.6.
null
if not defined.String getPrivateUse()
See RFC 5646 section 2.2.7.
null
if not defined.Copyright © 2020 Connect2id Ltd.. All rights reserved.