public class NotAllowedValidator extends Object implements javax.validation.ConstraintValidator<NotAllowed,PredefinedSetOfPages>
Enum annotated field or method where some of the values are not allowed.| Constructor and Description |
|---|
NotAllowedValidator() |
| Modifier and Type | Method and Description |
|---|---|
void |
initialize(NotAllowed constraintAnnotation) |
boolean |
isValid(PredefinedSetOfPages value,
javax.validation.ConstraintValidatorContext context) |
public void initialize(NotAllowed constraintAnnotation)
initialize in interface javax.validation.ConstraintValidator<NotAllowed,PredefinedSetOfPages>public boolean isValid(PredefinedSetOfPages value, javax.validation.ConstraintValidatorContext context)
isValid in interface javax.validation.ConstraintValidator<NotAllowed,PredefinedSetOfPages>Copyright © 2015. All Rights Reserved.