javax.faces.application
Class MessageImpl

java.lang.Object
  extended byjavax.faces.application.MessageImpl
All Implemented Interfaces:
Message, java.io.Serializable

public class MessageImpl
extends java.lang.Object
implements Message, java.io.Serializable

MessageImpl is a concrete class that implements Message, and is a convenient base class for other Message implementations.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface javax.faces.application.Message
SEVERITY_ERROR, SEVERITY_FATAL, SEVERITY_INFO, SEVERITY_WARN
 
Constructor Summary
MessageImpl()
          Construct a new Message with no initial values.
MessageImpl(int severity, java.lang.String summary, java.lang.String detail)
          Construct a new Message with the specified initial values.
 
Method Summary
 java.lang.String getDetail()
          Return the localized detail text for this Message (if any).
 int getSeverity()
          Return the severity level of this Message.
 java.lang.String getSummary()
          Return the localized summary text for this Message.
 void setDetail(java.lang.String detail)
          Set the localized detail text.
 void setSeverity(int severity)
          Set the severity level.
 void setSummary(java.lang.String summary)
          Set the localized summary text.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageImpl

public MessageImpl()

Construct a new Message with no initial values.


MessageImpl

public MessageImpl(int severity,
                   java.lang.String summary,
                   java.lang.String detail)

Construct a new Message with the specified initial values.

Parameters:
severity - Severity level of this Message
summary - Localized summary message text
detail - Localized detail message text
Throws:
java.lang.IllegalArgumentException - if the specified severity level is not one of the supported values
Method Detail

getDetail

public java.lang.String getDetail()
Description copied from interface: Message

Return the localized detail text for this Message (if any). This should be additional text that can help the user understand the context of the problem, and offer suggestions for approaches to correcting it.

Specified by:
getDetail in interface Message

setDetail

public void setDetail(java.lang.String detail)

Set the localized detail text.

Parameters:
detail - The new localized detail text

getSeverity

public int getSeverity()
Description copied from interface: Message

Return the severity level of this Message.

Specified by:
getSeverity in interface Message

setSeverity

public void setSeverity(int severity)

Set the severity level.

Parameters:
severity - The new severity level
Throws:
java.lang.IllegalArgumentException - if the specified severity level is not one of the supported values

getSummary

public java.lang.String getSummary()
Description copied from interface: Message

Return the localized summary text for this Message. This should be the text that would normally be displayed to a user to identify the problem that needs to be corrected.

Specified by:
getSummary in interface Message

setSummary

public void setSummary(java.lang.String summary)

Set the localized summary text.

Parameters:
summary - The new localized summary text