Class Validators
- java.lang.Object
-
- springfox.bean.validators.plugins.Validators
-
public class Validators extends java.lang.Object
Utility methods for Validators
-
-
Field Summary
Fields Modifier and Type Field Description static int
BEAN_VALIDATOR_PLUGIN_ORDER
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T extends java.lang.annotation.Annotation>
java.util.Optional<T>annotationFromBean(ModelPropertyContext context, java.lang.Class<T> annotationType)
static <T extends java.lang.annotation.Annotation>
java.util.Optional<T>annotationFromField(ModelPropertyContext context, java.lang.Class<T> annotationType)
static <T extends java.lang.annotation.Annotation>
java.util.Optional<T>annotationFromParameter(ParameterContext context, java.lang.Class<T> annotationType)
static <T extends java.lang.annotation.Annotation>
java.util.Optional<T>extractAnnotation(ModelPropertyContext context, java.lang.Class<T> annotationType)
-
-
-
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)
-
-