net.sourceforge.smile.resource
Class Message

java.lang.Object
  extended byjavax.faces.application.MessageImpl
      extended bynet.sourceforge.smile.resource.Message
All Implemented Interfaces:
javax.faces.application.Message, java.io.Serializable

public class Message
extends javax.faces.application.MessageImpl

Represents a message in smile.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface javax.faces.application.Message
SEVERITY_ERROR, SEVERITY_FATAL, SEVERITY_INFO, SEVERITY_WARN
 
Constructor Summary
Message()
          Creates an empty Message object.
Message(int severity, java.lang.String summary, java.lang.String detail)
          Creates a message object in the system.
 
Methods inherited from class javax.faces.application.MessageImpl
getDetail, getSeverity, getSummary, setDetail, setSeverity, setSummary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Message

public Message()
Creates an empty Message object. Don't forget to initialize it with setSeverity, setSummary and setDetail. We recommend using the 3-argument constructor instead of this one.


Message

public Message(int severity,
               java.lang.String summary,
               java.lang.String detail)
Creates a message object in the system. This class is typically used by the UIComponents and Validators to generate messages and queue them on a component.

Parameters:
severity - the severity code for this message.
summary - a short format message.
detail - a more descriptive version of summary.