Package org.nuiton.validator.bean.simple
Package of Nuiton - Simple Bean Validator api.
The SimpleBeanValidator api
The SimpleBeanValidator purpose is to validate
a bean, with a listener api to interact with outside world.
The idea is to attach the bean to validate insed the validator, then the validator listen any modification of the bean to revalidate it and fires events when messages has changed on a field.
SimpleBeanValidatorListener listener = new SimpleBeanValidatorListener() {XXX};
SimpleBeanValidator<O> validator = XXX;
validator.addSimpleBeanValidatorListener(listener);
validator.setBean(o);
Obtain a validator
To obtain a bean validator use the factory method of theSimpleBeanValidator.
SimpleBeanValidator<O> validator = SimpleBeanValidator.newValidator(...);To be continued...
- Since:
- 2.0
-
Interface Summary Interface Description SimpleBeanValidatorListener The definition of an event onSimpleBeanValidatorEventto be fired by aBeanListValidator. -
Class Summary Class Description SimpleBeanValidator<O> Validator for a javaBean object.SimpleBeanValidator.NuitonValidatorContext<O> SimpleBeanValidatorEvent Event to be fired when some messages changed on a given field / scope of a bean.SimpleBeanValidatorMessage<E extends SimpleBeanValidatorMessage<?>> The object to box a validation message.SimpleBeanValidators Useful methods arondSimpleBeanValidator.