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