Class EmailValidator

java.lang.Object
org.xbricks.common.generic.validation.EmailValidator
All Implemented Interfaces:
jakarta.validation.ConstraintValidator<ValidEmail,String>

public class EmailValidator extends Object implements jakarta.validation.ConstraintValidator<ValidEmail,String>
  • Constructor Details

    • EmailValidator

      public EmailValidator()
  • Method Details

    • initialize

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

      public boolean isValid(String username, jakarta.validation.ConstraintValidatorContext context)
      Specified by:
      isValid in interface jakarta.validation.ConstraintValidator<ValidEmail,String>