Tabnine Logo
Constraint.value
Code IndexAdd Tabnine to your IDE (free)

How to use
value
method
in
jodd.vtor.Constraint

Best Java code snippets using jodd.vtor.Constraint.value (Showing top 2 results out of 315)

origin: oblac/jodd

constraintClass = c.value();
origin: org.jodd/jodd-wot

/**
 * Collect annotations for some target.
 */
@SuppressWarnings({"unchecked"})
protected void collectAnnotationChecks(List<Check> annChecks, Class targetType, String targetName, Annotation[] annotations) {
  for (Annotation annotation : annotations) {
    Constraint c = annotation.annotationType().getAnnotation(Constraint.class);
    if (c == null) {
      continue;
    }
    Class<? extends ValidationConstraint> constraintClass = c.value();
    ValidationConstraint vc;
    try {
      vc = newConstraint(constraintClass, targetType);
    } catch (Exception ex) {
      throw new VtorException("Unable to create constraint: " + constraintClass.getClass().getName(), ex);
    }
    vc.configure(annotation);
    Check check = new Check(targetName, vc);
    copyDefaultCheckProperties(check, annotation);
    annChecks.add(check);
  }
}
jodd.vtorConstraintvalue

Popular methods of Constraint

    Popular in Java

    • Making http post requests using okhttp
    • setScale (BigDecimal)
    • getApplicationContext (Context)
    • getContentResolver (Context)
    • FileNotFoundException (java.io)
      Thrown when a file specified by a program cannot be found.
    • RandomAccessFile (java.io)
      Allows reading from and writing to a file in a random-access manner. This is different from the uni-
    • ResultSet (java.sql)
      An interface for an object which represents a database table entry, returned as the result of the qu
    • Time (java.sql)
      Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
    • FileUtils (org.apache.commons.io)
      General file manipulation utilities. Facilities are provided in the following areas: * writing to a
    • IsNull (org.hamcrest.core)
      Is the value null?
    • Top Sublime Text plugins
    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