Java 类org.hibernate.validator.constraints.impl.EmailValidator 实例源码

项目:coj-web    文件:RestPrivateController.java   
private boolean ValidateEmail(String email){
    EmailValidator a = new EmailValidator();
    if (!a.isValid(email, null))
        return false; 

    try {
        boolean emailExist = userDAO.bool("exist.user.bymail", email);
        if (!emailExist) 
            return false;

    } catch (Exception e) {return false;}

    return true;
}