public class SpringValidator<T> extends Object implements Validator<T>, org.springframework.beans.factory.InitializingBean
Validator
interface to
Validator
.Constructor and Description |
---|
SpringValidator() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
void |
setValidator(org.springframework.validation.Validator validator) |
void |
validate(T item)
Method used to validate if the value is valid.
|
public void validate(T item) throws ValidationException
Validator
validate
in interface Validator<T>
item
- object to be validatedValidationException
- if value is not valid.Validator.validate(Object)
public void setValidator(org.springframework.validation.Validator validator)
Copyright © 2014 Pivotal. All rights reserved.