|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuiton.validator.bean.BeanValidatorMessage<E>
E - type of message (use for override Comparable.compareTo(Object)
method.public class BeanValidatorMessage<E extends BeanValidatorMessage<?>>
The object to box a validation message.
| Field Summary | |
|---|---|
protected String |
field
the field that produce the message |
protected String |
message
the label of the message (to be displayed somewhere) |
protected NuitonValidatorScope |
scope
the scope of the message |
protected BeanValidator<?> |
validator
the validator that produce the message |
| Constructor Summary | |
|---|---|
BeanValidatorMessage(BeanValidator<?> validator,
String field,
String message,
NuitonValidatorScope scope)
|
|
| Method Summary | |
|---|---|
int |
compareTo(E o)
|
boolean |
equals(Object o)
|
String |
getField()
|
String |
getI18nError(String error)
|
String |
getMessage()
|
NuitonValidatorScope |
getScope()
|
BeanValidator<?> |
getValidator()
|
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected BeanValidator<?> validator
protected String field
protected String message
protected NuitonValidatorScope scope
| Constructor Detail |
|---|
public BeanValidatorMessage(BeanValidator<?> validator,
String field,
String message,
NuitonValidatorScope scope)
| Method Detail |
|---|
public BeanValidator<?> getValidator()
public String getField()
public NuitonValidatorScope getScope()
public String getMessage()
public int compareTo(E o)
compareTo in interface Comparable<E extends BeanValidatorMessage<?>>public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Objectpublic String getI18nError(String error)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||