org.apache.bval.routines
Class EMailValidation
java.lang.Object
org.apache.bval.routines.EMailValidation
- All Implemented Interfaces:
- Validation
public class EMailValidation
- extends Object
- implements Validation
Description: example validation for email addresses using a regular expression
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EMailValidation
public EMailValidation()
validate
public <T extends ValidationListener> void validate(ValidationContext<T> context)
- Description copied from interface:
Validation
- Perform a single validation routine.
Validate the object or property according to the current ValidationContext.
- Specified by:
validate
in interface Validation
- Parameters:
context
- - to access the property, value, constraints
getPattern
public Pattern getPattern()
setPattern
public void setPattern(Pattern pattern)
Copyright © 2010-2012 Apache Software Foundation. All Rights Reserved.