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

  • Reading from database using SQL prepared statement
  • findViewById (Activity)
  • getExternalFilesDir (Context)
  • onRequestPermissionsResult (Fragment)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Github Copilot alternatives
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