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 Objectbeanthe bean on which event occurs.protected Stringfieldthe field that produce the messageprotected Stringmessagethe label of the message (to be displayed somewhere)protected NuitonValidatorScopescopethe scope of the messageprotected BeanListValidator<?>validatorthe 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 intcompareTo(E o)booleanequals(Object o)ObjectgetBean()StringgetField()StringgetI18nError(String error)StringgetMessage()NuitonValidatorScopegetScope()BeanListValidator<?>getValidator()inthashCode()StringtoString()
-
-
-
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:
compareToin interfaceComparable<E extends BeanListValidatorMessage<?>>
-
-