Class ValidatorResolutionTest.InvalidPersonNameValidator

  • All Implemented Interfaces:
    jakarta.validation.ConstraintValidator<jakarta.validation.constraints.NotNull,​String>
    Enclosing class:
    ValidatorResolutionTest

    public static class ValidatorResolutionTest.InvalidPersonNameValidator
    extends Object
    implements jakarta.validation.ConstraintValidator<jakarta.validation.constraints.NotNull,​String>
    • Constructor Detail

      • InvalidPersonNameValidator

        public InvalidPersonNameValidator()
    • Method Detail

      • initialize

        public void initialize​(jakarta.validation.constraints.NotNull constraintAnnotation)
        Specified by:
        initialize in interface jakarta.validation.ConstraintValidator<jakarta.validation.constraints.NotNull,​String>
      • isValid

        public boolean isValid​(String value,
                               jakarta.validation.ConstraintValidatorContext context)
        Specified by:
        isValid in interface jakarta.validation.ConstraintValidator<jakarta.validation.constraints.NotNull,​String>