Class Validators


  • public class Validators
    extends java.lang.Object
    Utility methods for Validators
    • Field Detail

      • BEAN_VALIDATOR_PLUGIN_ORDER

        public static final int BEAN_VALIDATOR_PLUGIN_ORDER
        See Also:
        Constant Field Values
    • Method Detail

      • extractAnnotation

        public static <T extends java.lang.annotation.Annotation> java.util.Optional<T> extractAnnotation​(ModelPropertyContext context,
                                                                                                          java.lang.Class<T> annotationType)
      • annotationFromBean

        public static <T extends java.lang.annotation.Annotation> java.util.Optional<T> annotationFromBean​(ModelPropertyContext context,
                                                                                                           java.lang.Class<T> annotationType)
      • annotationFromField

        public static <T extends java.lang.annotation.Annotation> java.util.Optional<T> annotationFromField​(ModelPropertyContext context,
                                                                                                            java.lang.Class<T> annotationType)
      • annotationFromParameter

        public static <T extends java.lang.annotation.Annotation> java.util.Optional<T> annotationFromParameter​(ParameterContext context,
                                                                                                                java.lang.Class<T> annotationType)