|
Oracle® Globalization Development Kit Java API Reference 10g Release 1(10.1) B10971-01 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--oracle.i18n.util.OraDisplayLocaleInfo
OraDisplayLocaleInfo is a translation utility class that provides the pre-defined translations for locale and attributes.
First, getInstance(java.util.Locale) 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/territory name |
String |
getDisplayCountry(String country)Returns a translated country/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/territory name |
String |
getDisplayTimeZone(String tzs)Returns a translated TimeZone name. |
String |
getDisplayTimeZone(TimeZone tz)Returns a translated TimeZone name. |
static oracle.i18n.util.OraDisplayLocaleInfo |
getInstance(Locale transLocale)Constructs or reuse an instance of OraDisplayLocaleInfo associated with the translation locale. |
static oracle.i18n.util.OraDisplayLocaleInfo |
getInstance(Locale transLocale, Locale defLocale)Constructs or reuse an instance of OraDisplayLocaleInfo 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()
public static oracle.i18n.util.OraDisplayLocaleInfo getInstance(Locale transLocale)
transLocale - a translation localepublic static oracle.i18n.util.OraDisplayLocaleInfo getInstance(Locale transLocale, Locale defLocale)
transLocale - a translation localepublic String getDisplayLocale(Locale locale)
locale - a locale to be translated.public 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 using getRawOffset() value in the form of (UTCSHH:MM) where S for a sign of the value, HH represents the hours of the offset, and MI represents the minutes of the offiset.
tz - a TimeZone to be translated.public String getDisplayTimeZone(String tzs)
tzs - a time zone ID to be translated. If the time zone ID is invalid, UTC is used.getDisplayTimeZone(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) B10971-01 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||