Bali Share 1.1.18

oracle.bali.share.nls
Class LocaleUtils

java.lang.Object
  |
  +--oracle.bali.share.nls.LocaleUtils

public final class LocaleUtils
extends java.lang.Object

Utility class dealing with Locale-related issues, including common direction and alignment constants.


Field Summary
static java.util.Locale ARABIC
          Useful constant for language.
static java.util.Locale BRAZIL
          Useful constant for country.
static java.util.Locale CANADA
          Useful constant for country.
static java.util.Locale CANADA_FRENCH
          Useful constant for country.
static java.util.Locale CHINA
          Useful constant for country.
static java.util.Locale CHINESE
          Useful constant for language.
static java.util.Locale CZECH
          Useful constant for language.
static java.util.Locale DANISH
          Useful constant for language.
static int DIRECTION_DEFAULT
          Reading direction constant
static int DIRECTION_LEFTTORIGHT
          Reading direction constant
static int DIRECTION_RIGHTTOLEFT
          Reading direction constant
static java.util.Locale DUTCH
          Useful constant for language.
static java.util.Locale ENGLISH
          Useful constant for language.
static java.util.Locale FINNISH
          Useful constant for language.
static java.util.Locale FRANCE
          Useful constant for country.
static java.util.Locale FRENCH
          Useful constant for language.
static java.util.Locale GERMAN
          Useful constant for language.
static java.util.Locale GERMANY
          Useful constant for country.
static java.util.Locale HUNGARIAN
          Useful constant for language.
static java.util.Locale ITALIAN
          Useful constant for language.
static java.util.Locale ITALY
          Useful constant for country.
static java.util.Locale JAPAN
          Useful constant for country.
static java.util.Locale JAPANESE
          Useful constant for language.
static java.util.Locale KOREA
          Useful constant for country.
static java.util.Locale KOREAN
          Useful constant for language.
static java.util.Locale NORWEGIAN
          Useful constant for language.
static java.util.Locale POLISH
          Useful constant for language.
static java.util.Locale PORTUGUESE
          Useful constant for language.
static java.util.Locale PRC
          Useful constant for country.
static java.util.Locale RUSSIAN
          Useful constant for language.
static java.util.Locale SIMPLIFIED_CHINESE
          Useful constant for language.
static java.util.Locale SLOVAK
          Useful constant for language.
static java.util.Locale SPANISH
          Useful constant for language.
static java.util.Locale SWEDISH
          Useful constant for language.
static java.util.Locale TAIWAN
          Useful constant for country.
static java.util.Locale TRADITIONAL_CHINESE
          Useful constant for language.
static java.util.Locale UK
          Useful constant for country.
static java.util.Locale US
          Useful constant for country.
 
Method Summary
static java.util.Locale getDefaultableLocale(java.awt.Component component)
          Return the locale for the given component or Locale.getDefault() if none exists on the component.
static java.util.Locale getLocaleForIANAString(java.lang.String ianaString)
          Decodes an IANA string (e.g., en-us) into a Locale object.
static java.util.Locale getLocaleWithCountry(java.util.Locale inLocale)
          Returns a locale with the country set based on the language, if the Locale doesn't already have the country set
static int getReadingDirectionForLocale(java.util.Locale loc)
          Given a locale, returns the default reading direction.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ARABIC

public static final java.util.Locale ARABIC
Useful constant for language.

CHINESE

public static final java.util.Locale CHINESE
Useful constant for language.

CZECH

public static final java.util.Locale CZECH
Useful constant for language.

DANISH

public static final java.util.Locale DANISH
Useful constant for language.

DUTCH

public static final java.util.Locale DUTCH
Useful constant for language.

ENGLISH

public static final java.util.Locale ENGLISH
Useful constant for language.

FINNISH

public static final java.util.Locale FINNISH
Useful constant for language.

FRENCH

public static final java.util.Locale FRENCH
Useful constant for language.

GERMAN

public static final java.util.Locale GERMAN
Useful constant for language.

HUNGARIAN

public static final java.util.Locale HUNGARIAN
Useful constant for language.

ITALIAN

public static final java.util.Locale ITALIAN
Useful constant for language.

JAPANESE

public static final java.util.Locale JAPANESE
Useful constant for language.

KOREAN

public static final java.util.Locale KOREAN
Useful constant for language.

NORWEGIAN

public static final java.util.Locale NORWEGIAN
Useful constant for language.

POLISH

public static final java.util.Locale POLISH
Useful constant for language.

PORTUGUESE

public static final java.util.Locale PORTUGUESE
Useful constant for language.

RUSSIAN

public static final java.util.Locale RUSSIAN
Useful constant for language.

SLOVAK

public static final java.util.Locale SLOVAK
Useful constant for language.

SPANISH

public static final java.util.Locale SPANISH
Useful constant for language.

SWEDISH

public static final java.util.Locale SWEDISH
Useful constant for language.

SIMPLIFIED_CHINESE

public static final java.util.Locale SIMPLIFIED_CHINESE
Useful constant for language.

TRADITIONAL_CHINESE

public static final java.util.Locale TRADITIONAL_CHINESE
Useful constant for language.

BRAZIL

public static final java.util.Locale BRAZIL
Useful constant for country.

CANADA

public static final java.util.Locale CANADA
Useful constant for country.

CANADA_FRENCH

public static final java.util.Locale CANADA_FRENCH
Useful constant for country.

CHINA

public static final java.util.Locale CHINA
Useful constant for country.

FRANCE

public static final java.util.Locale FRANCE
Useful constant for country.

GERMANY

public static final java.util.Locale GERMANY
Useful constant for country.

ITALY

public static final java.util.Locale ITALY
Useful constant for country.

JAPAN

public static final java.util.Locale JAPAN
Useful constant for country.

KOREA

public static final java.util.Locale KOREA
Useful constant for country.

PRC

public static final java.util.Locale PRC
Useful constant for country.

TAIWAN

public static final java.util.Locale TAIWAN
Useful constant for country.

UK

public static final java.util.Locale UK
Useful constant for country.

US

public static final java.util.Locale US
Useful constant for country.

DIRECTION_DEFAULT

public static final int DIRECTION_DEFAULT
Reading direction constant

DIRECTION_LEFTTORIGHT

public static final int DIRECTION_LEFTTORIGHT
Reading direction constant

DIRECTION_RIGHTTOLEFT

public static final int DIRECTION_RIGHTTOLEFT
Reading direction constant
Method Detail

getDefaultableLocale

public static java.util.Locale getDefaultableLocale(java.awt.Component component)
Return the locale for the given component or Locale.getDefault() if none exists on the component.

getReadingDirectionForLocale

public static int getReadingDirectionForLocale(java.util.Locale loc)
Given a locale, returns the default reading direction.

getLocaleForIANAString

public static java.util.Locale getLocaleForIANAString(java.lang.String ianaString)
Decodes an IANA string (e.g., en-us) into a Locale object.

getLocaleWithCountry

public static java.util.Locale getLocaleWithCountry(java.util.Locale inLocale)
Returns a locale with the country set based on the language, if the Locale doesn't already have the country set

Bali Share 1.1.18