| java.lang.Object org.strecks.validator.factory.BaseFactory
All known Subclasses: org.strecks.validator.factory.ValidateIntegerRangeFactory, org.strecks.validator.factory.ValidateDateFactory, org.strecks.validator.factory.ValidateDoubleFactory, org.strecks.validator.factory.ValidateLongFactory, org.strecks.validator.factory.ValidateBlankOrNullFactory, org.strecks.validator.factory.ValidateLongRangeFactory, org.strecks.validator.factory.ValidateIntegerFactory, org.strecks.validator.factory.ValidateByteFactory, org.strecks.validator.factory.ValidateEmailFactory, org.strecks.validator.factory.ValidatePatternFactory, org.strecks.validator.factory.ValidateCreditCardFactory, org.strecks.validator.factory.ValidateShortFactory, org.strecks.validator.factory.ValidateBooleanFactory, org.strecks.validator.factory.ValidateMaxLengthFactory, org.strecks.validator.factory.ValidateRequiredFactory, org.strecks.validator.factory.ValidateUrlFactory, org.strecks.validator.factory.ValidateFloatFactory,
BaseFactory | abstract public class BaseFactory implements ValidatorFactory(Code) | | Convenience base class of ValidatorFactory implementations
author: Phil Zoio |
Method Summary | |
protected ValidatorWrapper | create(Validator validator, String key, int order, List<Object> parameters, Method method) Returns a ValidatorWrapper which encapsulates all the validations for a property
Parameters: validator - the Validator instance wrapped by the ValidatorWrapper Parameters: key - the message key used to look up the relevant error message on validation failure Parameters: order - the order in which this validator should be called. | protected MessageParameterProvider | getMessageParameterProvider() | MessageParameterProvider | newMessageParameterProvider() | ValidatorWrapper | newWrapper(Validator validator, String key, int order, List<Object> parameters, Method method, MessageParameterProvider provider) | boolean | shouldUseConvertedValue(Validator validator, Method method) |
create | protected ValidatorWrapper create(Validator validator, String key, int order, List<Object> parameters, Method method)(Code) | | Returns a ValidatorWrapper which encapsulates all the validations for a property
Parameters: validator - the Validator instance wrapped by the ValidatorWrapper Parameters: key - the message key used to look up the relevant error message on validation failure Parameters: order - the order in which this validator should be called. Validators are called in ascending order Parameters: parameters - additional parameters supplied to the validator. For example, a date validator will require a patternparameter, and an integer range validator will require minimum and maximum ranges Parameters: method - the setter method for the property being validated |
|
|