public interface Validator<T>
Modifier and Type | Method and Description |
---|---|
java.lang.Class<T> |
getValidatedType()
Get the type that this validator validates
|
void |
validate(T value,
java.lang.String field,
Validation validation)
Validate the given value
|
void validate(T value, java.lang.String field, Validation validation)
value
- The value, may be nullfield
- The name of the field being validated, if applicablevalidation
- The validation contextjava.lang.Class<T> getValidatedType()
Copyright © 2014 ninjaframework. All Rights Reserved.