Package org.nuiton.validator.bean.list
Package of Nuiton - BeanListValidator api.
The BeanValidator api
The BeanListValidator
purpose is to validate
a list of bean, with a listener api to interact with outside world.
BeanListValidatorListener listener = new BeanListValidatorListener() {XXX}; BeanValidator<O> validator = XXX; validator.addBeanListValidatorListener(listener); validator.addBean(bean1); validator.addBean(bean2);
Obtain a validator
To obtain a bean validator use one of the factory method on theBeanListValidator
.
BeanListValidator<O> validator = BeanListValidator.newValidator(O.class);To be continued...
- Since:
- 2.0
-
Interface Summary Interface Description BeanListValidatorListener The definition of an event onBeanListValidatorEvent
to be fired by aBeanListValidator
. -
Class Summary Class Description BeanListValidator<O> To validate a list of beans.BeanListValidator.NuitonValidatorContext<O> BeanListValidatorEvent Event to be fired when some messages changed on a given field / scope of a bean.BeanListValidatorMessage<E extends BeanListValidatorMessage<?>> TODO