org.apache.commons.el
Class MessageUtil

java.lang.Object
  extended by org.apache.commons.el.MessageUtil

public class MessageUtil
extends Object

Utility class for generating parameterized messages.

Version:
$Id: MessageUtil.java 480405 2006-11-29 04:49:34Z bayard $

Constructor Summary
MessageUtil()
           
 
Method Summary
static String getMessageWithArgs(String pTemplate, Object pArg0)
          Returns a formatted message based on the provided template and a single parameter.
static String getMessageWithArgs(String pTemplate, Object pArg0, Object pArg1)
          Returns a formatted message based on the provided template and provided parameter.
static String getMessageWithArgs(String pTemplate, Object pArg0, Object pArg1, Object pArg2)
          Returns a formatted message based on the provided template and provided parameter.
static String getMessageWithArgs(String pTemplate, Object pArg0, Object pArg1, Object pArg2, Object pArg3)
          Returns a formatted message based on the provided template and provided parameter.
static String getMessageWithArgs(String pTemplate, Object pArg0, Object pArg1, Object pArg2, Object pArg3, Object pArg4)
          Returns a formatted message based on the provided template and provided parameter.
static String getMessageWithArgs(String pTemplate, Object pArg0, Object pArg1, Object pArg2, Object pArg3, Object pArg4, Object pArg5)
          Returns a formatted message based on the provided template and provided parameter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageUtil

public MessageUtil()
Method Detail

getMessageWithArgs

public static String getMessageWithArgs(String pTemplate,
                                        Object pArg0)

Returns a formatted message based on the provided template and a single parameter.

Parameters:
pTemplate - the base message
pArg0 - parameter
Returns:
Returns a formatted message based on the provided template and a single parameter.

getMessageWithArgs

public static String getMessageWithArgs(String pTemplate,
                                        Object pArg0,
                                        Object pArg1)

Returns a formatted message based on the provided template and provided parameter.

Parameters:
pTemplate - the base message
pArg0 - parameter 1
pArg1 - parameter 2
Returns:
Returns a formatted message based on the provided template and provided parameter

getMessageWithArgs

public static String getMessageWithArgs(String pTemplate,
                                        Object pArg0,
                                        Object pArg1,
                                        Object pArg2)

Returns a formatted message based on the provided template and provided parameter.

Parameters:
pTemplate - the base message
pArg0 - parameter 1
pArg1 - parameter 2
pArg2 - parameter 3
Returns:
Returns a formatted message based on the provided template and provided parameter

getMessageWithArgs

public static String getMessageWithArgs(String pTemplate,
                                        Object pArg0,
                                        Object pArg1,
                                        Object pArg2,
                                        Object pArg3)

Returns a formatted message based on the provided template and provided parameter.

Parameters:
pTemplate - the base message
pArg0 - parameter 1
pArg1 - parameter 2
pArg2 - parameter 3
pArg3 - parameter 4
Returns:
Returns a formatted message based on the provided template and provided parameter

getMessageWithArgs

public static String getMessageWithArgs(String pTemplate,
                                        Object pArg0,
                                        Object pArg1,
                                        Object pArg2,
                                        Object pArg3,
                                        Object pArg4)

Returns a formatted message based on the provided template and provided parameter.

Parameters:
pTemplate - the base message
pArg0 - parameter 1
pArg1 - parameter 2
pArg2 - parameter 3
pArg3 - parameter 4
pArg4 - parameter 5
Returns:
Returns a formatted message based on the provided template and provided parameter

getMessageWithArgs

public static String getMessageWithArgs(String pTemplate,
                                        Object pArg0,
                                        Object pArg1,
                                        Object pArg2,
                                        Object pArg3,
                                        Object pArg4,
                                        Object pArg5)

Returns a formatted message based on the provided template and provided parameter.

Parameters:
pTemplate - the base message
pArg0 - parameter 1
pArg1 - parameter 2
pArg2 - parameter 3
pArg3 - parameter 4
pArg4 - parameter 5
pArg5 - parameter 6
Returns:
Returns a formatted message based on the provided template and provided parameter


Copyright © 2003-2010 Apache Software Foundation. All Rights Reserved.