net.sf.shineframework.common.messages
Interface Message

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
MessageImpl

public interface Message
extends java.io.Serializable

A message. This is part of the i18n infrastructure. A message is defined by the following properties:

Author:
amirk
See Also:
Localizer

Nested Class Summary
static class Message.Severity
           
 
Method Summary
 void addParam(java.lang.String value)
           
 void addParams(java.lang.Object... values)
           
 java.lang.String getKey()
          Gets the message key
 java.lang.String getMessage()
          retrieves the localized message with the default locale as defined in the localizer
 java.lang.String getMessage(java.util.Locale l)
          retrieves the localized message from the localizer according to the locale
 java.util.Collection getParams()
          Returns an immutable collection of the message params
 Message.Severity getSeverity()
          the severity is configurable in the spring messages.xml file of the application.
 java.util.Date getTimestamp()
           
 

Method Detail

addParam

void addParam(java.lang.String value)

addParams

void addParams(java.lang.Object... values)

getKey

java.lang.String getKey()
Gets the message key

Returns:

getMessage

java.lang.String getMessage()
retrieves the localized message with the default locale as defined in the localizer

Returns:

getMessage

java.lang.String getMessage(java.util.Locale l)
retrieves the localized message from the localizer according to the locale

Parameters:
l -
Returns:

getSeverity

Message.Severity getSeverity()
the severity is configurable in the spring messages.xml file of the application. In the future this method will return an enum

Returns:

getTimestamp

java.util.Date getTimestamp()

getParams

java.util.Collection getParams()
Returns an immutable collection of the message params

Returns:


Copyright © 2007 sourceforge.net. All Rights Reserved.