|
Oracle Fusion Middleware Java API Reference for Oracle Data Visualization Components 11g Release 1 (11.1.1) E12063-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.dss.util.xdo.common.lang.LocaleUtil
public class LocaleUtil
Field Summary | |
---|---|
static java.lang.String |
RCS_ID |
Constructor Summary | |
---|---|
LocaleUtil() |
Method Summary | |
---|---|
static java.lang.String |
getCountry(java.lang.String locale) returns Country portion of locale string. |
static java.lang.String |
getDefaultLocaleString() returns default locale string. |
static java.lang.String |
getLanguage(java.lang.String locale) |
static java.util.Locale |
getLocale(java.lang.String locale) parse a locale based on given string since the since could contains "-" or "_", so we need to parse it by ourselves instead of using java.util.Locale's logic |
static java.lang.String |
getLocaleString(java.util.Locale locale) Returns a RFC3066 locale string corresponding to the specified java locale. |
static java.lang.String |
getVariant(java.lang.String locale) returns Variant portion of locale string. |
static boolean |
isArabic(java.lang.String locale) returns whether input locale is arabic language or not. |
static boolean |
isBidi(java.lang.String locale) returns whether input locale is bidi language or not. |
static boolean |
isHebrew(java.lang.String locale) returns whether input locale is hebrew language or not. |
static boolean |
isJapanese(java.lang.String locale) Returns ture if the specified locale is Japanese locale. |
static boolean |
isKorean(java.lang.String locale) Returns ture if the specified locale is Korean locale. |
static boolean |
isLatin1(java.lang.String locale) Returns ture if the specified locale is latin1 locale. |
static boolean |
isSimplifiedChinese(java.lang.String locale) Returns ture if the specified locale is Simplified Chinese locale. |
static boolean |
isTraditionalChinese(java.lang.String locale) Returns ture if the specified locale is Traditional Chinese locale. |
static java.lang.String |
validate(java.lang.String locale) Validate the specified locale string and returns the corrected RFC3066 locale string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String RCS_ID
Constructor Detail |
---|
public LocaleUtil()
Method Detail |
---|
public static final java.lang.String getLanguage(java.lang.String locale)
public static final java.lang.String getCountry(java.lang.String locale)
locale
- ... locale Stringpublic static final java.lang.String getVariant(java.lang.String locale)
locale
- ... locale Stringpublic static java.lang.String validate(java.lang.String locale)
public static final boolean isBidi(java.lang.String locale)
locale
- ... locale Stringpublic static final boolean isArabic(java.lang.String locale)
locale
- ... locale Stringpublic static final boolean isHebrew(java.lang.String locale)
locale
- ... locale Stringpublic static final java.lang.String getDefaultLocaleString()
public static final java.lang.String getLocaleString(java.util.Locale locale)
locale
- java localepublic static final java.util.Locale getLocale(java.lang.String locale)
locale
- the RFC3066 locale in a java.lang.String
java.util.Locale
objectpublic static final boolean isLatin1(java.lang.String locale)
locale
- locale stringpublic static final boolean isSimplifiedChinese(java.lang.String locale)
locale
- locale stringpublic static final boolean isTraditionalChinese(java.lang.String locale)
locale
- locale stringpublic static final boolean isJapanese(java.lang.String locale)
locale
- locale stringpublic static final boolean isKorean(java.lang.String locale)
locale
- locale string
|
Oracle Fusion Middleware Java API Reference for Oracle Data Visualization Components 11g Release 1 (11.1.1) E12063-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |