Package com.bc.ceres.binding.validators
Class MultiValidator
- java.lang.Object
-
- com.bc.ceres.binding.validators.MultiValidator
-
-
Constructor Summary
Constructors Constructor Description MultiValidator()
MultiValidator(List<Validator> validators)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addValidator(Validator validator)
Validator[]
getValidators()
void
removeValidator(Validator validator)
void
validateValue(Property property, Object value)
Validates a value with respect to a provided property.
-
-
-
Method Detail
-
getValidators
public Validator[] getValidators()
-
addValidator
public void addValidator(Validator validator)
-
removeValidator
public void removeValidator(Validator validator)
-
validateValue
public void validateValue(Property property, Object value) throws ValidationException
Description copied from interface:Validator
Validates a value with respect to a provided property.- Specified by:
validateValue
in interfaceValidator
- Parameters:
property
- The property.value
- The value to be validated.- Throws:
ValidationException
- If validation fails.
-
-