|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portal.lang.Resources
public final class 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 String |
getString(Class client,
String name)
Returns the localized value of the specified string resource. |
static String |
getString(Class client,
String name,
String[] objects)
Returns the localized value of the specified string resource. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static final String getString(Class client,
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
NullPointerException - if client or name is
null
MissingResourceException - if the resource name
is not found
public static final String getString(Class client,
String name,
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
NullPointerException - if client or name is
null
MissingResourceException - if the resource name
is not found
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||