|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.genericra.util.StringManagerBase
public class StringManagerBase
Implementation of a local string manager. Provides access to i18n messages for classes that need them.
Method Summary | |
---|---|
java.lang.String |
getString(java.lang.String key)
Returns a localized string. |
java.lang.String |
getString(java.lang.String key,
java.lang.Object arg1)
Returns a local string for the caller and format the arguments accordingly. |
java.lang.String |
getString(java.lang.String key,
java.lang.Object[] args)
Returns a local string for the caller and format the arguments accordingly. |
java.lang.String |
getString(java.lang.String key,
java.lang.Object arg1,
java.lang.Object arg2)
Returns a local string for the caller and format the arguments accordingly. |
java.lang.String |
getString(java.lang.String key,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3)
Returns a local string for the caller and format the arguments accordingly. |
java.lang.String |
getString(java.lang.String key,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3,
java.lang.Object arg4)
Returns a local string for the caller and format the arguments accordingly. |
static StringManagerBase |
getStringManager(java.lang.String resourceBundleName)
Returns a local string manager for the given resourceBundle name. |
java.lang.String |
getStringWithDefault(java.lang.String key,
java.lang.String defaultValue)
Returns a localized string. |
java.lang.String |
getStringWithDefault(java.lang.String key,
java.lang.String defaultFormat,
java.lang.Object[] arguments)
Returns a local string for the caller and format the arguments accordingly. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static StringManagerBase getStringManager(java.lang.String resourceBundleName)
resourceBundleName
- name of the resource bundle
public java.lang.String getString(java.lang.String key)
key
- the name of the resource to fetch
public java.lang.String getStringWithDefault(java.lang.String key, java.lang.String defaultValue)
key
- the name of the resource to fetchdefaultValue
- the default return value if not found
public java.lang.String getStringWithDefault(java.lang.String key, java.lang.String defaultFormat, java.lang.Object[] arguments)
key
- the key to the local format stringdefaultFormat
- the default format if not found in the resourcesarguments
- the set of arguments to provide to the formatter
public java.lang.String getString(java.lang.String key, java.lang.Object arg1)
key
- the key to the local format stringarg1
- the one argument to be provided to the formatter
public java.lang.String getString(java.lang.String key, java.lang.Object arg1, java.lang.Object arg2)
key
- the key to the local format stringarg1
- first argument to be provided to the formatterarg2
- second argument to be provided to the formatter
public java.lang.String getString(java.lang.String key, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3)
key
- the key to the local format stringarg1
- first argument to be provided to the formatterarg2
- second argument to be provided to the formatterarg3
- third argument to be provided to the formatter
public java.lang.String getString(java.lang.String key, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3, java.lang.Object arg4)
key
- the key to the local format stringarg1
- first argument to be provided to the formatterarg2
- second argument to be provided to the formatterarg3
- third argument to be provided to the formatterarg4
- fourth argument to be provided to the formatter
public java.lang.String getString(java.lang.String key, java.lang.Object[] args)
key
- the key to the local format stringargs
- the array of arguments to be provided to the formatter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |