congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
Constraint
Code IndexAdd Tabnine to your IDE (free)

How to use
Constraint
in
jodd.vtor

Best Java code snippets using jodd.vtor.Constraint (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.vtorConstraint

Most used methods

  • value

Popular in Java

  • Making http requests using okhttp
  • getContentResolver (Context)
  • findViewById (Activity)
  • setScale (BigDecimal)
  • String (java.lang)
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Runner (org.openjdk.jmh.runner)
  • Sublime Text for Python
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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