Package org.nuiton.validator

Package of Nuiton-validator api.

See:
          Description

Interface Summary
NuitonValidator<O> Contract of a validator.
NuitonValidatorProvider Provider of NuitonValidator.
 

Class Summary
AbstractNuitonValidatorProvider Abstract provider of validator.
AbstractNuitonValidatorProvider.ModelEntry<O>  
NuitonValidatorFactory Factory to obtain new validators.
NuitonValidatorModel<O> Represents the model of a NuitonValidator.
NuitonValidatorResult Default implementation of the NuitonValidatorResult contract.
NuitonValidatorResult.FieldMap<V>  
 

Enum Summary
NuitonValidatorScope The differents levels of messages in validation process.
 

Package org.nuiton.validator Description

Package of Nuiton-validator api.

The Validator api

The NuitonValidator is the object responsible to launch validation for a given object and then return the result of validation in a NuitonValidatorResult via the method NuitonValidator.validate(Object).

 NuitonValidator<O> validator = XXX;
 NuitonValidatorResult result = validator.validate(o);
 

Obtain a validator

To obtain a validator use the factory of validators : NuitonValidatorFactory.
 NuitonValidator<O> validator = NuitonValidatorFactory.newValidator(O.class);
 

Implements the validator api

At the moment, there is an offered implementation based on xwork2 framework. To be continued...

Since:
2.0


Copyright © 2011-2012 CodeLutin. All Rights Reserved.