| java.lang.Object org.jasig.portal.lang.Resources
Resources | final public class Resources (Code) | | 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.
author: Jan Nielsen version: $Revision: 35982 $ $Date: 2005-08-05 11:40:38 -0700 (Fri, 05 Aug 2005) $ |
getString | final public static String getString(Class client, String name)(Code) | | Returns the localized value of the specified string
resource. The string resource is resolved by using the client
parameter to lookup the associated ResourceBundle
object and returning the string value associated with the
specified name.
Parameters: client - class to use to find the resource bundle Parameters: name - name of the string resource value of the string resource throws: NullPointerException - if client or name isnull throws: java.util.MissingResourceException - if the resource nameis not found |
getString | final public static String getString(Class client, String name, String[] objects)(Code) | | Returns the localized value of the specified string
resource. The string resource is resolved by using the client
parameter to lookup the associated 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.
Parameters: client - class to use to find the resource bundle Parameters: name - name of the string resource Parameters: objects - runtime objects to be inserted into resource value of the string resource throws: NullPointerException - if client or name isnull throws: java.util.MissingResourceException - if the resource nameis not found |
|
|