org.hibernate.validator
Interface Validator<A extends java.lang.annotation.Annotation>

All Known Implementing Classes:
AssertFalseValidator, AssertTrueValidator, EmailValidator, FutureValidator, LengthValidator, MaxValidator, MinValidator, NotNullValidator, PastValidator, PatternValidator, RangeValidator, SizeValidator

public interface Validator<A extends java.lang.annotation.Annotation>

A constraint validator for a particular annotation

Author:
Gavin King

Method Summary
 void initialize(A parameters)
          Take the annotations values
 boolean isValid(Object value)
          does the object/element pass the constraints
 

Method Detail

isValid

boolean isValid(Object value)
does the object/element pass the constraints


initialize

void initialize(A parameters)
Take the annotations values

Parameters:
parameters -