|
Oracle ADF Model and Business Components API Reference 10.1.2 B14022-01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.jbo.common.StringManager
Provides methods for managing localizable messages.
This class provides static methods for obtaining unformatted messages from a resource and performing formatting.
This class ia a wrapper for
the standard Java ResourceBundle
and
MessageFormat
classes.
This class traps exceptions that may occur while constructing messages, and describes the failure in the message that is returned.
Field Summary | |
protected StringManager |
mLast
|
Constructor Summary | |
protected |
StringManager()
|
Method Summary | |
abstract void |
appendCustomMessageBundles(com.sun.java.util.collections.ArrayList list)
|
abstract com.sun.java.util.collections.Iterator |
getCustomMessageBundlesIter()
|
static java.lang.String |
getGeneralExceptionString(java.lang.String bundle,
java.lang.String key,
java.lang.Exception ex)
Constructs a message describing a fatal exception. |
static java.lang.String |
getLocalizedString(java.lang.String bundle,
java.lang.String key,
java.lang.String dflt,
java.util.Locale locale)
Localizes a message using a specified locale. |
static java.lang.String |
getLocalizedString(java.lang.String bundle,
java.lang.String key,
java.lang.String dflt,
java.util.Locale locale,
boolean useDefault)
Localizes a message using a specified locale. |
static java.lang.String |
getLocalizedString(java.lang.String bundle,
java.lang.String key,
java.lang.String dflt,
java.util.Locale locale,
java.lang.Object[] values)
Formats and localizes a message using a specified locale. |
static java.lang.String |
getLocalizedString(java.lang.String bundle,
java.lang.String key,
java.lang.String dflt,
java.util.Locale locale,
java.lang.Object[] values,
boolean useDefault)
Formats and localizes a message using a specified locale. |
static StringManager |
getSingleton()
|
protected java.lang.String |
getString(java.util.ResourceBundle bundle,
java.lang.String key,
java.lang.String dflt,
java.lang.Object[] values,
boolean useDefault)
|
static java.lang.String |
getString(java.lang.String bundle,
java.lang.String key,
java.lang.String dflt)
Localizes a message using the default locale. |
protected java.lang.String |
getString(java.lang.String bundle,
java.lang.String key,
java.lang.String dflt,
java.util.Locale locale,
java.lang.Object[] values)
|
protected java.lang.String |
getString(java.lang.String bundle,
java.lang.String key,
java.lang.String dflt,
java.util.Locale locale,
java.lang.Object[] values,
boolean useDefault)
|
static java.lang.String |
getString(java.lang.String bundle,
java.lang.String key,
java.lang.String dflt,
java.lang.Object[] values)
Formats and localizes a message using the default locale. |
protected java.lang.String |
getStringFromBundle(java.lang.String bundle,
java.lang.String key,
java.lang.String dflt,
java.util.Locale locale,
java.lang.Object[] values,
boolean useDefault)
|
protected java.lang.String |
getStringInternal(java.lang.String bundle,
java.lang.String key,
java.lang.String dflt,
java.util.Locale locale,
java.lang.Object[] values,
boolean useDefault)
|
abstract void |
removeCustomMessageBundle(java.lang.String clzName)
|
abstract void |
setCustomMessageBundles(com.sun.java.util.collections.ArrayList list)
|
static void |
setExtension(StringManager ext)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected StringManager mLast
Constructor Detail |
protected StringManager()
Method Detail |
public static StringManager getSingleton()
public static void setExtension(StringManager ext)
public static final java.lang.String getString(java.lang.String bundle, java.lang.String key, java.lang.String dflt)
bundle
- the name of a ResourceBundle
class.key
- a message code found in bundle
.dflt
- the default value; returned if the message named by
key
is not found.
dflt
if key
is not found.public static final java.lang.String getString(java.lang.String bundle, java.lang.String key, java.lang.String dflt, java.lang.Object[] values)
bundle
- the name of a ResourceBundle
class.key
- a message code found in bundle
.dflt
- the default value; returned if the message named by
key
is not found.values
- an array of parameters to be inserted into the message.
dflt
if key
is not found.public static final java.lang.String getLocalizedString(java.lang.String bundle, java.lang.String key, java.lang.String dflt, java.util.Locale locale, boolean useDefault)
bundle
- the name of a ResourceBundle
class.key
- a message code found in bundle
.dflt
- the default value; returned if the message named by
key
is not found.locale
- the target language for the message.
dflt
if key
is not found.public static final java.lang.String getLocalizedString(java.lang.String bundle, java.lang.String key, java.lang.String dflt, java.util.Locale locale)
bundle
- the name of a ResourceBundle
class.key
- a message code found in bundle
.dflt
- the default value; returned if the message named by
key
is not found.locale
- the target language for the message.
dflt
if key
is not found.public static final java.lang.String getLocalizedString(java.lang.String bundle, java.lang.String key, java.lang.String dflt, java.util.Locale locale, java.lang.Object[] values)
bundle
- the name of a ResourceBundle
class.key
- a message code found in bundle
.dflt
- the default value; returned if the message named by
key
is not found.locale
- the target language for the message.values
- an array of message parameters to be inserted into the message.
dflt
if key
is not found.public static final java.lang.String getLocalizedString(java.lang.String bundle, java.lang.String key, java.lang.String dflt, java.util.Locale locale, java.lang.Object[] values, boolean useDefault)
bundle
- the name of a ResourceBundle
class.key
- a message code found in bundle
.dflt
- the default value; returned if the message named by
key
is not found.locale
- the target language for the message.values
- an array of message parameters to be inserted into the message.
dflt
if key
is not found.public abstract com.sun.java.util.collections.Iterator getCustomMessageBundlesIter()
public abstract void setCustomMessageBundles(com.sun.java.util.collections.ArrayList list)
public abstract void appendCustomMessageBundles(com.sun.java.util.collections.ArrayList list)
public abstract void removeCustomMessageBundle(java.lang.String clzName)
protected final java.lang.String getString(java.lang.String bundle, java.lang.String key, java.lang.String dflt, java.util.Locale locale, java.lang.Object[] values)
protected java.lang.String getString(java.lang.String bundle, java.lang.String key, java.lang.String dflt, java.util.Locale locale, java.lang.Object[] values, boolean useDefault)
protected final java.lang.String getStringInternal(java.lang.String bundle, java.lang.String key, java.lang.String dflt, java.util.Locale locale, java.lang.Object[] values, boolean useDefault)
protected java.lang.String getStringFromBundle(java.lang.String bundle, java.lang.String key, java.lang.String dflt, java.util.Locale locale, java.lang.Object[] values, boolean useDefault)
protected java.lang.String getString(java.util.ResourceBundle bundle, java.lang.String key, java.lang.String dflt, java.lang.Object[] values, boolean useDefault)
public static final java.lang.String getGeneralExceptionString(java.lang.String bundle, java.lang.String key, java.lang.Exception ex)
bundle
- the name of a ResourceBundle
class.key
- a message code found in bundle
.ex
- the exception to be described.
|
Oracle ADF Model and Business Components API Reference 10.1.2 B14022-01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.