com.elasticpath.commons.validator.impl
Class EpEmailValidator

java.lang.Object
  extended by com.elasticpath.commons.validator.impl.EpEmailValidator

public class EpEmailValidator
extends java.lang.Object

EpEmailValidator is a customized Email validator to implement validation that is more aligned with the RFC specification.


Method Summary
static EpEmailValidator getInstance()
          Returns the Singleton instance of this validator.
 boolean isValid(java.lang.String email)
          Checks if a field has a valid e-mail address.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static EpEmailValidator getInstance()
Returns the Singleton instance of this validator.

Returns:
singleton instance of this validator.

isValid

public boolean isValid(java.lang.String email)

Checks if a field has a valid e-mail address.

Parameters:
email - The value that validation is being performed on. A null value is considered invalid.
Returns:
true if the email address is valid.