Package model.validation
Class PostExistsValidator
- java.lang.Object
-
- model.validation.PostExistsValidator
-
- All Implemented Interfaces:
ConstraintValidator<PostExists,Integer>
public class PostExistsValidator extends Object implements ConstraintValidator<PostExists,Integer>
-
-
Constructor Summary
Constructors Constructor Description PostExistsValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
initialize(PostExists constraintAnnotation)
boolean
isValid(Integer value, ConstraintValidatorContext context)
-
-
-
Constructor Detail
-
PostExistsValidator
public PostExistsValidator()
-
-
Method Detail
-
initialize
public void initialize(PostExists constraintAnnotation)
- Specified by:
initialize
in interfaceConstraintValidator<PostExists,Integer>
-
isValid
public boolean isValid(Integer value, ConstraintValidatorContext context)
- Specified by:
isValid
in interfaceConstraintValidator<PostExists,Integer>
-
-