public abstract class TypeValidator extends Object implements Validator
Constructor and Description |
---|
TypeValidator() |
Modifier and Type | Method and Description |
---|---|
boolean |
apply(Class<?> type,
Object value,
List<ValidationFailure> validationFailures)
Apply validation for the given field.
|
public boolean apply(Class<?> type, Object value, List<ValidationFailure> validationFailures)
type
- the Class of the field being queriedvalue
- the value being used for a queryvalidationFailures
- the list to add any failures to. If validation passes or appliesTo
returned false, this list will
not change.Copyright © 2016. All rights reserved.