Oracle® Globalization Development Kit Java API Reference
10g Release 1(10.1)

B10971-01

oracle.i18n.util
Class OraDisplayLocaleInfo

java.lang.Object
  |
  +--oracle.i18n.util.OraDisplayLocaleInfo

public class OraDisplayLocaleInfo
extends Object

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.

Since:
10.1.0.2

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

getLocale

public Locale getLocale()
Returns the locale associated with this object
Returns:
a Locale object

getInstance

public static oracle.i18n.util.OraDisplayLocaleInfo getInstance(Locale transLocale)
Constructs or reuse an instance of OraDisplayLocaleInfo associated with the translation locale.
Parameters:
transLocale - a translation locale
Returns:
an instance of OraDisplayLocaleInfo

getInstance

public static oracle.i18n.util.OraDisplayLocaleInfo getInstance(Locale transLocale,
Locale defLocale)
Constructs or reuse an instance of OraDisplayLocaleInfo associated with the translation locale.
Parameters:
transLocale - a translation locale
Returns:
an instance of OraDisplayLocaleInfo

getDisplayLocale

public String getDisplayLocale(Locale locale)
Returns a translated locale name.
Parameters:
locale - a locale to be translated.
Returns:
a translated string.

getDisplayLocale

public String getDisplayLocale(String oraLanguage,
String oraTerritory)
Returns a translated locale name
Parameters:
oraLanguage - an Oracle language name
oraTerritory - an Oracle territory name
Returns:
a translated locale name

getDisplayLanguage

public String getDisplayLanguage(Locale locale)
Returns a translated language name
Parameters:
locale - a locale that includes the language to be translated
Returns:
a translated langauge name

getDisplayLanguage

public String getDisplayLanguage(String language)
Returns a translated language name
Parameters:
language - a language name
Returns:
a translated langauge name

getDisplayCountry

public String getDisplayCountry(Locale locale)
Returns a translated country/territory name
Parameters:
locale - a locale that includes the country to be translated
Returns:
a translated country name

getDisplayCountry

public String getDisplayCountry(String country)
Returns a translated country/territory name
Parameters:
country - a country name to be translated
Returns:
a translated country name

getDisplayTerritory

public String getDisplayTerritory(String territory)
Returns a translated country/territory name
Parameters:
territory - a country name to be translated
Returns:
a translated country name

getDisplayTimeZone

public String getDisplayTimeZone(TimeZone tz)
Returns a translated TimeZone name.

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.

Parameters:
tz - a TimeZone to be translated.
Returns:
a translated timezone name

getDisplayTimeZone

public String getDisplayTimeZone(String tzs)
Returns a translated TimeZone name.
Parameters:
tzs - a time zone ID to be translated. If the time zone ID is invalid, UTC is used.
Returns:
a translated timezone name
See Also:
getDisplayTimeZone(TimeZone)

getDisplayLinguisticSort

public String getDisplayLinguisticSort(String linguisticSort)
Returns a translated Linguistic sorting name
Parameters:
linguisticSort - an Oracle linguistic sorting name to be translated
Returns:
a translated linguistic sorting name

getDisplayCharacterSet

public String getDisplayCharacterSet(String charset)
Returns a translated character set name
Parameters:
charset - a character set name to be translated
Returns:
a translated character set name

getDisplayCurrency

public String getDisplayCurrency(String currencySymbol)
Returns a translated currency name
Parameters:
currencySymbol - a character set symbol ISO 4217
Returns:
a translated currency name

Oracle® Globalization Development Kit Java API Reference
10g Release 1(10.1)

B10971-01

Copyright © 2003 Oracle Corporation. All Rights Reserved.