public class LoginValidator extends Object implements org.springframework.validation.Validator
LoginValidator class.
| Modifier and Type | Field and Description |
|---|---|
protected static String |
CONST_AT_SIGN
Constant
CONST_AT_SIGN="@" |
| Constructor and Description |
|---|
LoginValidator()
Constructor for LoginValidator.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isCheckEmail(String emailValue)
isCheckEmail.
|
boolean |
supports(Class clazz)
Returns true if this Validator supports the specified Class, and false otherwise.
|
void |
validate(Object obj,
org.springframework.validation.Errors errors)
Validates the specified Object.
|
void |
validateEmail(String emailProperty,
String emailValue,
org.springframework.validation.Errors errors)
Validates an email address.
|
protected static final String CONST_AT_SIGN
CONST_AT_SIGN="@"public boolean supports(Class clazz)
supports in interface org.springframework.validation.Validatorclazz - public void validate(Object obj, org.springframework.validation.Errors errors)
validate in interface org.springframework.validation.Validatorobj - errors - public void validateEmail(String emailProperty, String emailValue, org.springframework.validation.Errors errors)
emailProperty - email property name such as "emailAddress"emailValue - value of the email propertyerrors - Errors object for validation errorsCopyright © 2015 SeqWare. All rights reserved.