|
||||||||||
| 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.
| Constructor Summary | |
|---|---|
private |
Resources()
Private constructor. |
| 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 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
private Resources()
| 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 found
public 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||