|
JBoss Logging I18n Tools 1.0.0.Beta7 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.logging.validation.ValidationErrorMessage
public class ValidationErrorMessage
A message that contains information about the validation error.
The message is message to print and the element was the element that caused the error.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.jboss.logging.validation.ValidationMessage |
|---|
ValidationMessage.MessageType |
| Constructor Summary | |
|---|---|
ValidationErrorMessage(Element element,
String message)
Class constructor. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
Element |
getElement()
Returns the element that caused the error. |
String |
getMessage()
Returns the error message. |
int |
hashCode()
|
static ValidationErrorMessage |
of(Element element,
String message)
Creates a new validation error message. |
static ValidationErrorMessage |
of(Element element,
String messageFormat,
Object... args)
Creates a new formatted validation error message. |
String |
toString()
|
ValidationMessage.MessageType |
type()
The type of the message. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ValidationErrorMessage(Element element,
String message)
element - the element that caused the error.message - the error message.| Method Detail |
|---|
public static ValidationErrorMessage of(Element element,
String message)
element - the element to create the message for.message - the message for the error.
public static ValidationErrorMessage of(Element element,
String messageFormat,
Object... args)
element - the element to create the message for.messageFormat - the message format.args - the replacement arguments for String.format(java.lang.String, java.lang.Object[]).
public ValidationMessage.MessageType type()
ValidationMessage
type in interface ValidationMessagepublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic String toString()
toString in class Objectpublic Element getElement()
ValidationMessage
getElement in interface ValidationMessagepublic String getMessage()
ValidationMessage
getMessage in interface ValidationMessage
|
JBoss Logging I18n Tools 1.0.0.Beta7 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||