com.vaadin.data.validator
Class EmailValidator

java.lang.Object
  extended by com.vaadin.data.validator.AbstractValidator<String>
      extended by com.vaadin.data.validator.AbstractStringValidator
          extended by com.vaadin.data.validator.RegexpValidator
              extended by com.vaadin.data.validator.EmailValidator
All Implemented Interfaces:
Validator, Serializable

public class EmailValidator
extends RegexpValidator

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. See AbstractStringValidator for more information.

Since:
5.4
Version:
7.0.0.alpha2
Author:
Vaadin Ltd.
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.vaadin.data.Validator
Validator.EmptyValueException, Validator.InvalidValueException
 
Constructor Summary
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.data.validator.RegexpValidator
isValidValue
 
Methods inherited from class com.vaadin.data.validator.AbstractStringValidator
getType
 
Methods inherited from class com.vaadin.data.validator.AbstractValidator
getErrorMessage, isValid, isValidType, setErrorMessage, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.


Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.