|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.avaje.ebean.validation.factory.EmailValidation
public class EmailValidation
An email address represents the textual string of an RFC 2822 email address and other corresponding information of interest.
If you use this code, please keep the author information in tact and reference my site at leshazlewood.com. Thanks!
Rob Bygrave: I have renamed and modified this class slightly.
Constructor Summary | |
---|---|
EmailValidation(String pattern)
|
Method Summary | |
---|---|
static EmailValidation |
create(boolean allowDomainLiterals,
boolean allowQuotedIdentifiers)
Create a Email address validator based on whether you wish to allow domain literals or quoted identifiers. |
boolean |
isValid(String email)
Utility method that checks to see if the specified string is a valid email address according to the RFC 2822 specification. |
static boolean |
isValidEmail(String email)
Validation of email using the default validator. |
static void |
main(String[] args)
Test method. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EmailValidation(String pattern)
Method Detail |
---|
public static EmailValidation create(boolean allowDomainLiterals, boolean allowQuotedIdentifiers)
public boolean isValid(String email)
email
- the email address string to test for validity.
public static boolean isValidEmail(String email)
public static void main(String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |