SmartFrog 3.10.000

org.smartfrog.sfcore.common
Class MessageUtil

java.lang.Object
  extended by org.smartfrog.sfcore.common.MessageUtil

public final class MessageUtil
extends java.lang.Object

Utiliy class to format the messages from the error message bundle.


Method Summary
static java.lang.String formatMessage(java.lang.String messageKey)
          Returns the formatted string for the message key.
static java.lang.String formatMessage(java.lang.String messageKey, java.lang.Object arg0)
          Returns the formatted string for the message key.
static java.lang.String formatMessage(java.lang.String messageKey, java.lang.Object arg0, java.lang.Object arg1)
          Returns the formatted string for the message key.
static java.lang.String formatMessage(java.lang.String messageKey, java.lang.Object arg0, java.lang.Object arg1, java.lang.Object arg2)
          Returns the formatted string for the message key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

formatMessage

public static java.lang.String formatMessage(java.lang.String messageKey)
Returns the formatted string for the message key.

Parameters:
messageKey - message code
Returns:
Formatted message after replacing the arguments in the message

formatMessage

public static java.lang.String formatMessage(java.lang.String messageKey,
                                             java.lang.Object arg0)
Returns the formatted string for the message key.

Parameters:
messageKey - message code
arg0 - argument
Returns:
Formatted message after replacing the arguments in the message

formatMessage

public static java.lang.String formatMessage(java.lang.String messageKey,
                                             java.lang.Object arg0,
                                             java.lang.Object arg1)
Returns the formatted string for the message key.

Parameters:
messageKey - message code
arg0 - argument
arg1 - argument
Returns:
Formatted message after replacing the arguments in the message

formatMessage

public static java.lang.String formatMessage(java.lang.String messageKey,
                                             java.lang.Object arg0,
                                             java.lang.Object arg1,
                                             java.lang.Object arg2)
Returns the formatted string for the message key.

Parameters:
messageKey - message code
arg0 - argument
arg1 - argument
arg2 - argument
Returns:
Formatted message after replacing the arguments in the message

SmartFrog CORE 3.10.000

(C) Copyright 1998-2006 Hewlett-Packard Development Company, LP