Package org.nuiton.validator.bean.simple
Class SimpleBeanValidatorMessage<E extends SimpleBeanValidatorMessage<?>>
- java.lang.Object
-
- org.nuiton.validator.bean.simple.SimpleBeanValidatorMessage<E>
-
- Type Parameters:
E- type of message (use for overrideComparable.compareTo(Object)method.
- All Implemented Interfaces:
Serializable,Comparable<E>
public class SimpleBeanValidatorMessage<E extends SimpleBeanValidatorMessage<?>> extends Object implements Comparable<E>, Serializable
The object to box a validation message.- Since:
- 2.5.2
- Author:
- Tony Chemit - chemit@codelutin.com
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringfieldthe field that produce the messageprotected Stringmessagethe label of the message (to be displayed somewhere)protected NuitonValidatorScopescopethe scope of the messageprotected SimpleBeanValidator<?>validatorthe validator that produce the message
-
Constructor Summary
Constructors Constructor Description SimpleBeanValidatorMessage(SimpleBeanValidator<?> validator, String field, String message, NuitonValidatorScope scope)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(E o)booleanequals(Object o)StringgetField()StringgetI18nError(String error)StringgetMessage()NuitonValidatorScopegetScope()SimpleBeanValidator<?>getValidator()inthashCode()StringtoString()
-
-
-
Field Detail
-
validator
protected SimpleBeanValidator<?> validator
the validator that produce the message
-
field
protected String field
the field that produce the message
-
message
protected String message
the label of the message (to be displayed somewhere)
-
scope
protected NuitonValidatorScope scope
the scope of the message
-
-
Constructor Detail
-
SimpleBeanValidatorMessage
public SimpleBeanValidatorMessage(SimpleBeanValidator<?> validator, String field, String message, NuitonValidatorScope scope)
-
-
Method Detail
-
getValidator
public SimpleBeanValidator<?> getValidator()
-
getField
public String getField()
-
getScope
public NuitonValidatorScope getScope()
-
getMessage
public String getMessage()
-
compareTo
public int compareTo(E o)
- Specified by:
compareToin interfaceComparable<E extends SimpleBeanValidatorMessage<?>>
-
-