Class EmailValidator

java.lang.Object
io.goobi.viewer.faces.validators.EmailValidator
All Implemented Interfaces:
EventListener, javax.faces.validator.Validator<String>

public class EmailValidator extends Object implements javax.faces.validator.Validator<String>
Syntax validator for e-mail addresses.
  • Constructor Details

    • EmailValidator

      public EmailValidator()
  • Method Details

    • validate

      public void validate(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, String value) throws javax.faces.validator.ValidatorException
      Specified by:
      validate in interface javax.faces.validator.Validator<String>
      Throws:
      javax.faces.validator.ValidatorException
    • validateEmailAddress

      public static boolean validateEmailAddress(String email)

      validateEmailAddress.

      Parameters:
      email - a String object.
      Returns:
      a boolean.