org.millscript.millscript
Class Resources

java.lang.Object
  extended by org.millscript.millscript.Resources

public final class Resources
extends java.lang.Object

This class is intended to handle internationalisation for any messages MillScript produces.


Method Summary
static java.lang.String getFormattedMessage(java.lang.String key, java.lang.Object arg)
          Returns the localised message for the specified key, formatted using the single specified argument.
static java.lang.String getFormattedMessage(java.lang.String key, java.lang.Object[] args)
          Returns the localised message for the specified key, formatted using the specified arguments.
static java.lang.String getMessage(java.lang.String key)
          Returns the localised message for the specified key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getMessage

public static java.lang.String getMessage(java.lang.String key)
Returns the localised message for the specified key.

Parameters:
key - the key for the desired message
Returns:
the localised message for the specified key

getFormattedMessage

public static java.lang.String getFormattedMessage(java.lang.String key,
                                                   java.lang.Object[] args)
Returns the localised message for the specified key, formatted using the specified arguments.

Parameters:
key - the key for the desired message
args - the arguments required to format the message
Returns:
the localised, formatted message for the specified key

getFormattedMessage

public static java.lang.String getFormattedMessage(java.lang.String key,
                                                   java.lang.Object arg)
Returns the localised message for the specified key, formatted using the single specified argument.

Parameters:
key - the key for the desired message
arg - the single argument required to format the message
Returns:
the localised, formatted message for the specified key


Copyright © 2001-2007 Open World Ltd. All Rights Reserved.