We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.flow.data.validator.
Class EmailValidator
- java.lang.Object
-
- com.vaadin.flow.data.validator.AbstractValidator<String>
-
- com.vaadin.flow.data.validator.RegexpValidator
-
- com.vaadin.flow.data.validator.EmailValidator
-
All Implemented Interfaces:
Validator<String>, Serializable, BiFunction<String,ValueContext,ValidationResult>
public class EmailValidator extends RegexpValidator
A string validator for e-mail addresses. The e-mail address syntax is not complete according to RFC 822 but handles the vast majority of valid e-mail addresses correctly.
Since:
1.0.
Author:
Vaadin Ltd
See Also:
-
-
Constructor Summary
Constructors Constructor and Description EmailValidator(String errorMessage)
Creates a validator for checking that a string is a syntactically valid e-mail address.
-
Method Summary
-
Methods inherited from class com.vaadin.flow.data.validator.RegexpValidator
apply, isValid, toString
-
Methods inherited from class com.vaadin.flow.data.validator.AbstractValidator
getMessage, toResult
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.vaadin.flow.data.binder.Validator
alwaysPass, from, from, from, from
-
Methods inherited from interface java.util.function.BiFunction
andThen
-
-
-
-
Constructor Detail
-
EmailValidator
public EmailValidator(String errorMessage)
Creates a validator for checking that a string is a syntactically valid e-mail address.
Parameters:
errorMessage
- the message to display in case the value does not validate.
-
-