org.sakaiproject.profile2.util
Class Messages

java.lang.Object
  extended by org.sakaiproject.profile2.util.Messages

public class Messages
extends Object

Messages.java Handles the retrieval of localised messages and parameter substitution.

Author:
Steve Swinsburg (steve.swinsburg@gmail.com)

Constructor Summary
Messages()
           
 
Method Summary
static String getString(String key)
          Get a simple message from the bundle
static String getString(String key, Object[] arguments)
          Get a parameterised message from the bundle and perform the parameter substitution on it
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Messages

public Messages()
Method Detail

getString

public static String getString(String key)
Get a simple message from the bundle

Parameters:
key -
Returns:

getString

public static String getString(String key,
                               Object[] arguments)
Get a parameterised message from the bundle and perform the parameter substitution on it

Parameters:
key -
Returns:


Copyright © 2008-2013 The Sakai Foundation. All Rights Reserved.