|
Oracle® Globalization Development Kit Java API Reference 10g Release 1 (10.1.0.0) Part No. B10971-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.i18n.util.OraDisplayLocaleInfo
The OraDisplayLocaleInfo
class is a translation utility class that provides the predefined translations for locale and attributes.
First, the getInstance(java.util.Locale)
method must be called to start using the class. The given Locale
parameter indicates the translation locale.
Method Summary | |
String |
getDisplayCharacterSet(String charset) Returns a translated character set name. |
String |
getDisplayCountry(Locale locale) Returns a translated country or territory name. |
String |
getDisplayCountry(String country) Returns a translated country or territory name. |
String |
getDisplayCurrency(String currencySymbol) Returns a translated currency name. |
String |
getDisplayLanguage(Locale locale) Returns a translated language name. |
String |
getDisplayLanguage(String language) Returns a translated language name. |
String |
getDisplayLinguisticSort(String linguisticSort) Returns a translated linguistic sorting name. |
String |
getDisplayLocale(Locale locale) Returns a translated locale name. |
String |
getDisplayLocale(String oraLanguage, String oraTerritory) Returns a translated locale name. |
String |
getDisplayTerritory(String territory) Returns a translated country or territory name. |
String |
getDisplayTimeZone(int style, String tzs) Returns a translated time zone name. |
String |
getDisplayTimeZone(int style, TimeZone tz) Returns a translated time zone name. |
String |
getDisplayTimeZone(String tzs) Returns a translated time zone name. |
String |
getDisplayTimeZone(TimeZone tz) Returns a translated time zone name. |
static oracle.i18n.util.OraDisplayLocaleInfo |
getInstance(Locale transLocale) Constructs or reuses an instance of the OraDisplayLocaleInfo class associated with the translation locale. |
static oracle.i18n.util.OraDisplayLocaleInfo |
getInstance(Locale transLocale, Locale defLocale) Constructs or reuses an instance of the OraDisplayLocaleInfo class associated with the translation locale. |
Locale |
getLocale() Returns the locale associated with this object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public Locale getLocale()
Locale
objectpublic static oracle.i18n.util.OraDisplayLocaleInfo getInstance(Locale transLocale)
OraDisplayLocaleInfo
class associated with the translation locale.transLocale
- a translation localeOraDisplayLocaleInfo
classpublic static oracle.i18n.util.OraDisplayLocaleInfo getInstance(Locale transLocale,
Locale defLocale)
OraDisplayLocaleInfo
class associated with the translation locale.transLocale
- a translation localedefLocale
- the default localeOraDisplayLocaleInfo
classpublic String getDisplayLocale(Locale locale)
locale
- a locale to be translatedpublic String getDisplayLocale(String oraLanguage,
String oraTerritory)
oraLanguage
- an Oracle language nameoraTerritory
- an Oracle territory namepublic String getDisplayLanguage(Locale locale)
locale
- a locale that includes the language to be translatedpublic String getDisplayLanguage(String language)
language
- a language namepublic String getDisplayCountry(Locale locale)
locale
- a locale that includes the country to be translatedpublic String getDisplayCountry(String country)
country
- a country name to be translatedpublic String getDisplayTerritory(String territory)
territory
- a country name to be translatedpublic String getDisplayTimeZone(TimeZone tz)
If the translation is not found, the return value is composed by using the return value of the getRawOffset
method in the form of (UTCSHH:MM)
where S
represents the sign of the value, HH
represents the hours of the offset, and MI
represents the minutes of the offset.
tz
- a time zone to be translatedpublic String getDisplayTimeZone(String tzs)
tzs
- a time zone ID to be translated. If the time zone ID is invalid, UTC
is usedgetDisplayTimeZone(TimeZone)
public String getDisplayTimeZone(int style,
TimeZone tz)
style
- the format style, for example, SHORT
, LONG
, or DEFAULT
tz
- a time zone to be translatedgetDisplayTimeZone(TimeZone)
public String getDisplayTimeZone(int style,
String tzs)
style
- the format style, for example, SHORT
, LONG
, or DEFAULT
tzs
- a time zone ID to be translated. If the time zone ID is invalid, UTC
is usedgetDisplayTimeZone(TimeZone)
public String getDisplayLinguisticSort(String linguisticSort)
linguisticSort
- an Oracle linguistic sorting name to be translatedpublic String getDisplayCharacterSet(String charset)
charset
- a character set name to be translatedpublic String getDisplayCurrency(String currencySymbol)
currencySymbol
- a character set symbol ISO 4217
|
Oracle® Globalization Development Kit Java API Reference 10g Release 1 (10.1.0.0) Part No. B10971-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |