org.mentawai.rule
Class EmailRule

java.lang.Object
  extended by org.mentawai.rule.BasicRule
      extended by org.mentawai.rule.RegexRule
          extended by org.mentawai.rule.EmailRule
All Implemented Interfaces:
Rule

public class EmailRule
extends RegexRule

A rule to validate an email address.

Author:
Sergio Oliveira

Field Summary
static String PATTERN
          The regex to use for email validation.
 
Constructor Summary
EmailRule()
          Creates a EmailRule.
 
Method Summary
static EmailRule getInstance()
           
 
Methods inherited from class org.mentawai.rule.RegexRule
check, getInstance, getTokens
 
Methods inherited from class org.mentawai.rule.BasicRule
check
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PATTERN

public static final String PATTERN
The regex to use for email validation.

See Also:
Constant Field Values
Constructor Detail

EmailRule

public EmailRule()
Creates a EmailRule.

Method Detail

getInstance

public static EmailRule getInstance()


Copyright © 2013. All Rights Reserved.