|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.binding.message.Message
public class Message
An object of communication that provides text information. For example, a validation message may inform a web application user a business rule was violated. A message can be associated with a particular source element or component, has text providing the basis for communication, and has severity indicating the priority or intensity of the message for its receiver.
| Constructor Summary | |
|---|---|
Message(Object source,
String text,
Severity severity)
Creates a new message. |
|
| Method Summary | |
|---|---|
Severity |
getSeverity()
The severity of this message. |
Object |
getSource()
A reference to the source element this message is associated with. |
String |
getText()
The message text. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Message(Object source,
String text,
Severity severity)
source - the source of the messagetext - the message textseverity - the message severity| Method Detail |
|---|
public Object getSource()
public String getText()
public Severity getSeverity()
public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||