org.springmodules.validation.commons
Interface ValidatorFactory
- All Known Implementing Classes:
- DefaultValidatorFactory
public interface ValidatorFactory
- Author:
- Daniel Miller
|
Method Summary |
org.apache.commons.validator.Validator |
getValidator(String beanName,
Object bean,
Errors errors)
Gets a new instance of a validator for the given bean (form). |
org.apache.commons.validator.ValidatorResources |
getValidatorResources()
|
boolean |
hasRulesForBean(String beanName,
Locale locale)
Returns true if this validator factory can create a validator that
supports the given beanName and locale. |
getValidator
org.apache.commons.validator.Validator getValidator(String beanName,
Object bean,
Errors errors)
- Gets a new instance of a validator for the given bean (form).
- Parameters:
beanName - The name of the bean for which this validator will be created.
hasRulesForBean
boolean hasRulesForBean(String beanName,
Locale locale)
- Returns true if this validator factory can create a validator that
supports the given
beanName and locale.
- Parameters:
beanName - String name of the bean to be validated.locale - Locale of the validator to create.
- Returns:
- true if this validator factory can create a validator for the
given bean name.
getValidatorResources
org.apache.commons.validator.ValidatorResources getValidatorResources()
- Returns:
- Returns the validatorResources.
Copyright © 2009. All Rights Reserved.