congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
EMailValidationUtils
Code IndexAdd Tabnine to your IDE (free)

How to use
EMailValidationUtils
in
org.apache.bval.routines

Best Java code snippets using org.apache.bval.routines.EMailValidationUtils (Showing top 7 results out of 315)

origin: org.apache.bval/bval-core

/**
 * Learn whether a given object is a valid email address.
 * 
 * @param value
 *            to check
 * @return <code>true</code> if the validation passes
 */
public static boolean isValid(Object value) {
  return isValid(value, DEFAULT_EMAIL_PATTERN);
}
origin: org.apache.bval/bval-jsr

/**
 * Learn whether a given object is a valid email address.
 * 
 * @param value
 *            to check
 * @return <code>true</code> if the validation passes
 */
public static boolean isValid(Object value) {
  return isValid(value, DEFAULT_EMAIL_PATTERN);
}
origin: org.apache.tomee.patch/bval-jsr

/**
 * Learn whether a given object is a valid email address.
 * 
 * @param value
 *            to check
 * @return <code>true</code> if the validation passes
 */
public static boolean isValid(Object value) {
  return isValid(value, DEFAULT_EMAIL_PATTERN);
}
origin: org.apache.bval/bval-jsr303

public boolean isValid(CharSequence value, ConstraintValidatorContext context) {
  return EMailValidationUtils.isValid(value);
}
origin: org.apache.tomee.patch/bval-jsr

  @Override
  public boolean isValid(CharSequence value, ConstraintValidatorContext context) {
    return EMailValidationUtils.isValid(value) && super.isValid(value, context);
  }
}
origin: org.apache.bval/bval-jsr

  @Override
  public boolean isValid(CharSequence value, ConstraintValidatorContext context) {
    return EMailValidationUtils.isValid(value) && super.isValid(value, context);
  }
}
origin: org.apache.bval/bval-xstream

@Override
public <T extends ValidationListener> void validate(ValidationContext<T> context) {
  if (context.getPropertyValue() == null)
    return;
  if (!EMailValidationUtils.isValid(context.getPropertyValue(), getPattern())) {
    context.getListener().addError(Reasons.EMAIL_ADDRESS, context);
  }
}
org.apache.bval.routinesEMailValidationUtils

Javadoc

Description: holds the regexp to validate an email address
User: roman.stumm
Date: 17.06.2010
Time: 10:40:59

Most used methods

  • isValid
    Learn whether a particular value matches a given pattern per Matcher#matches().

Popular in Java

  • Start an intent from android
  • getExternalFilesDir (Context)
  • onRequestPermissionsResult (Fragment)
  • startActivity (Activity)
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Collectors (java.util.stream)
  • Notification (javax.management)
  • JOptionPane (javax.swing)
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now