net.firstpartners.rp.common.util
Class MessageUtil

java.lang.Object
  extended by net.firstpartners.rp.common.util.MessageUtil

public class MessageUtil
extends java.lang.Object

Class responsable to handle the messages from property files

Version:
1.1
Author:
Firstpartners.net

Constructor Summary
MessageUtil()
           
 
Method Summary
static java.lang.String getMessage(java.lang.String code)
          Get the messages using the standard property file, using the code and no list of values
static java.lang.String getMessage(java.lang.String code, java.lang.Object[] values)
          Get the messages using the standard property file, using the code and list of values
static java.lang.String getMessage(java.lang.String basename, java.lang.String code, java.lang.Object[] values)
          Get the messages from the specified property file, using the code and list of values
 
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

getMessage

public static java.lang.String getMessage(java.lang.String basename,
                                          java.lang.String code,
                                          java.lang.Object[] values)
Get the messages from the specified property file, using the code and list of values

Parameters:
basename - The base message property file
code - The message code
values - The list of the values parameters for the messages
Returns:
The message

getMessage

public static java.lang.String getMessage(java.lang.String code,
                                          java.lang.Object[] values)
Get the messages using the standard property file, using the code and list of values

Parameters:
code - The message code
values - The list of the values parameters for the messages
Returns:
The message

getMessage

public static java.lang.String getMessage(java.lang.String code)
Get the messages using the standard property file, using the code and no list of values

Parameters:
code - The message code
Returns:
The message