Package org.nuiton.validator.bean.list
Class BeanListValidatorMessage<E extends BeanListValidatorMessage<?>>
- java.lang.Object
-
- org.nuiton.validator.bean.list.BeanListValidatorMessage<E>
-
- All Implemented Interfaces:
Serializable
,Comparable<E>
public class BeanListValidatorMessage<E extends BeanListValidatorMessage<?>> extends Object implements Comparable<E>, Serializable
TODO- Since:
- 2.5.2
- Author:
- Tony Chemit - chemit@codelutin.com
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Object
bean
the bean on which event occurs.protected String
field
the field that produce the messageprotected String
message
the label of the message (to be displayed somewhere)protected NuitonValidatorScope
scope
the scope of the messageprotected BeanListValidator<?>
validator
the validator that produce the message
-
Constructor Summary
Constructors Constructor Description BeanListValidatorMessage(BeanListValidator<?> validator, Object bean, String field, String message, NuitonValidatorScope scope)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(E o)
boolean
equals(Object o)
Object
getBean()
String
getField()
String
getI18nError(String error)
String
getMessage()
NuitonValidatorScope
getScope()
BeanListValidator<?>
getValidator()
int
hashCode()
String
toString()
-
-
-
Field Detail
-
validator
protected BeanListValidator<?> validator
the validator that produce the message
-
bean
protected Object bean
the bean on which event occurs.
-
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
-
BeanListValidatorMessage
public BeanListValidatorMessage(BeanListValidator<?> validator, Object bean, String field, String message, NuitonValidatorScope scope)
-
-
Method Detail
-
getValidator
public BeanListValidator<?> getValidator()
-
getField
public String getField()
-
getScope
public NuitonValidatorScope getScope()
-
getMessage
public String getMessage()
-
getBean
public Object getBean()
-
compareTo
public int compareTo(E o)
- Specified by:
compareTo
in interfaceComparable<E extends BeanListValidatorMessage<?>>
-
-