|
uPortal 2.4.1 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jasig.portal.lang.Resources
The Resources
class defines a set of utility methods
which translate an internationalized string to a localized
string. The transformation is done with the use of standard
java.util.ResourceBundle
and
java.text.MessageFormat
classes.
Method Summary | |
static java.lang.String |
getString(java.lang.Class client,
java.lang.String name)
Returns the localized value of the specified string resource. |
static java.lang.String |
getString(java.lang.Class client,
java.lang.String name,
java.lang.String[] objects)
Returns the localized value of the specified string resource. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static final java.lang.String getString(java.lang.Class client, java.lang.String name)
ResourceBundle
object and returning the string value associated with the
specified name.
client
- class to use to find the resource bundlename
- name of the string resource
java.lang.NullPointerException
- if client or name is
null
java.util.MissingResourceException
- if the resource name
is not foundpublic static final java.lang.String getString(java.lang.Class client, java.lang.String name, java.lang.String[] objects)
ResourceBundle
object and returning the string value associated with the
specified name. The MessageFormat
class is used to
format the localized string using the specified runtime
parameters.
client
- class to use to find the resource bundlename
- name of the string resourceobjects
- runtime objects to be inserted into resource
java.lang.NullPointerException
- if client or name is
null
java.util.MissingResourceException
- if the resource name
is not found
|
uPortal 2.4.1 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |