net.anotheria.maf.validation
Class EmailValidator
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EmailValidator
public EmailValidator()
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.