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