|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface FailureMessage
A failure message is a holding interface for objects that represent failure messages. These are passed to Validators to use to report particular failures. For example, a Validator may report two different types of failures, so it'll be configured with two different instances of this interface, which it will use to report failures, depending upon the type.
| Method Summary | |
|---|---|
java.util.Map |
getExtraMessages()
Retrieves additional messages that are associated with the failure. |
java.lang.String |
getMessage(java.lang.Object obj,
java.util.Locale locale)
Get the actual failure message. |
int |
getSeverity()
Retrieves the failure's severity level. |
| Method Detail |
|---|
java.lang.String getMessage(java.lang.Object obj,
java.util.Locale locale)
obj - An object used in generating the messagelocale - The locale use for localizing the message.int getSeverity()
java.util.Map getExtraMessages()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||