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,
Context context)
Validate the given value
|
void validate(T value, java.lang.String field, Context context)
value
- The value, may be nullfield
- The name of the field being validated, if applicablecontext
- The Ninja request contextjava.lang.Class<T> getValidatedType()
Copyright © 2016 ninjaframework. All Rights Reserved.