public class InfranetLocaleData extends Object implements Serializable, Comparable
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object o) |
String |
getDescriptionLocale()
Return the Portal locale of the language for the locale
description.
|
String |
getInfranetLocale()
Return the Portal locale string contained in this class.
|
String |
getJavaLocale()
Return the Java locale string contained in this class.
|
static String |
getJavaLocaleStr(Locale javaLocale)
Extract the Java locale string from the specified Java locale.
|
String |
getLocaleDescription()
Return the locale description.
|
int |
getLocaleDescriptionID()
Return the ID of the locale description string.
|
boolean |
isEqual(Locale javaLocale,
boolean extactMatch)
Test to see if the specified Java locale matches the Java locale
locale string contained in this class.
|
boolean |
isEqual(String infranetLocale,
boolean extactMatch)
Test to see if the specified Portal locale string is the same
as the Portal locale string contained in this class.
|
static boolean |
isEqual(String infranetLocale1,
String infranetLocale2,
boolean extactMatch)
Test to see if the two specified Portal locale strings are equal.
|
String |
toString()
Return the string representation of this class.
|
public String getInfranetLocale()
public String getJavaLocale()
public int getLocaleDescriptionID()
public String getLocaleDescription()
public String getDescriptionLocale()
public static boolean isEqual(String infranetLocale1, String infranetLocale2, boolean extactMatch)
infranetLocale
- The first Portal locale string to evaluate.infranetLocale
- The second Portal locale string to evaluate.extactMatch
- If this flag is true then the locale string
must be an exact match. If this flag is flase then only match
the language portion in each locale string.public boolean isEqual(String infranetLocale, boolean extactMatch)
infranetLocale
- The Portal locale string to evaluate.extactMatch
- If this flag is true then the locale string
must be an exact match. If this flag is flase then only match
the language portion in each locale string.public boolean isEqual(Locale javaLocale, boolean extactMatch)
javaLocale
- The Java locale to evaluate.extactMatch
- If this flag is true then the locale string
must be an exact match. If this flag is flase then only match
the language portion in each locale string.public String toString()
public int compareTo(Object o)
compareTo
in interface Comparable
public static String getJavaLocaleStr(Locale javaLocale)
Copyright © 2003, 2023, Oracle and/or its affiliates.