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

Part No. B10971-02

oracle.i18n.util
Class OraDisplayLocaleInfo

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

public class OraDisplayLocaleInfo
extends Object

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.

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 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

getLocale

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

getInstance

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

getInstance

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

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 language name

getDisplayLanguage

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

getDisplayCountry

public String getDisplayCountry(Locale locale)
Returns a translated country or 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 or 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 or territory name.
Parameters:
territory - a country name to be translated
Returns:
a translated country name

getDisplayTimeZone

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

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.

Parameters:
tz - a time zone to be translated
Returns:
a translated time zone name

getDisplayTimeZone

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

getDisplayTimeZone

public String getDisplayTimeZone(int style,
TimeZone tz)
Returns a translated time zone name.
Parameters:
style - the format style, for example, SHORT, LONG, or DEFAULT
tz - a time zone to be translated
Returns:
a translated time zone name
See Also:
getDisplayTimeZone(TimeZone)

getDisplayTimeZone

public String getDisplayTimeZone(int style,
String tzs)
Returns a translated time zone name.
Parameters:
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 used
Returns:
a translated time zone 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.0.0)

Part No. B10971-02

Copyright © 2003, 2004, Oracle. All rights reserved.