net.anotheria.maf.validation
Class EmailValidator

java.lang.Object
  extended by net.anotheria.maf.validation.EmailValidator
All Implemented Interfaces:
Validator<String>

public class EmailValidator
extends Object
implements Validator<String>

Validator class for validating email addresses. Allows empty values. If this is not allowed, combine it with @ValidateNotEmpty annotation. Usage:

@ValidateCustom(class="net.anotheria.maf.validation.EmailValidator" key="" message="")
private String email;

Author:
dzhmud

Constructor Summary
EmailValidator()
           
 
Method Summary
 boolean validate(String field)
          Check field value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmailValidator

public EmailValidator()
Method Detail

validate

public boolean validate(String field)
Description copied from interface: Validator
Check field value.

Specified by:
validate in interface Validator<String>
Parameters:
field - value to check
Returns:
true if valid


Copyright © 2010-2013 anotheria.net. All Rights Reserved.