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.

It is mainly used in GUI parts of an application (Jaxx-validator use it). 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 the SimpleBeanValidator.
 SimpleBeanValidator<O> validator = SimpleBeanValidator.newValidator(...);
 
To be continued...
Since:
2.0