public class Language extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
m_CountryCode
The abbreviated country code, for example: "US"
|
protected String |
m_IsoLocaleCode
The ISO Locale code name.
|
protected String |
m_JavaLocaleCode
The Java Locale code name.
|
protected String |
m_Language
The Oracle InterMedia language name.
|
protected String |
m_LanguageCode
The abbreviated language code, for example: "en"
|
Modifier | Constructor and Description |
---|---|
protected |
Language(String language,
String languageCode,
String countryCode)
Constructor
|
Modifier and Type | Method and Description |
---|---|
String |
getCountryCode()
Returns the abbreviated country code, for example: "GB"
|
String |
getIsoLocaleCode()
Returns the ISO locale code, for example: "en-US"
|
String |
getJavaLocaleCode()
Returns the java locale code, for example: "en_US"
This should be used for any iFS beans API
methods.
|
String |
getLanguage()
Returns the Oracle InterMedia language name.
|
String |
getLanguageCode()
Returns the abbreviated language code, for example: "en".
|
String |
getLanguageLabel(LibrarySession sess)
Returns the localized display name for the language, for example:
"English".
|
String |
getLanguageLabel(Localizer localizer)
Returns the localized label for the language, for example:
"Deutsch" if German locale setting.
|
String |
getLocaleCode()
Deprecated.
|
String |
getLocaleLabel(LibrarySession sess)
Returns the localized display name for the locale, for example:
"English (en-GB)".
|
String |
getLocaleLabel(Localizer localizer)
Returns the localized label for the language, for example:
"Deutsch (de-DE)" if German locale setting.
|
protected String m_IsoLocaleCode
protected String m_JavaLocaleCode
protected String m_Language
protected String m_LanguageCode
protected String m_CountryCode
public String getLanguage()
public String getLanguageLabel(LibrarySession sess) throws IfsException
sess
- current LibrarySessionIfsException
- if the operation failspublic String getLanguageLabel(Localizer localizer) throws IfsException
localizer
- to access the proper ResourceBundleIfsException
- if the operation failspublic String getLocaleLabel(LibrarySession sess) throws IfsException
sess
- current LibrarySessionIfsException
- if the operation failspublic String getLocaleLabel(Localizer localizer) throws IfsException
localizer
- to access the proper ResourceBundleIfsException
- if the operation failspublic String getLanguageCode()
public String getCountryCode()
public String getLocaleCode()
public String getIsoLocaleCode()
public String getJavaLocaleCode()
Copyright © 2023. All rights reserved.