public class Validators
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
BEAN_VALIDATOR_PLUGIN_ORDER |
Modifier and Type | Method and Description |
---|---|
static <T extends java.lang.annotation.Annotation> |
annotationFromBean(ModelPropertyContext context,
java.lang.Class<T> annotationType) |
static <T extends java.lang.annotation.Annotation> |
annotationFromField(ModelPropertyContext context,
java.lang.Class<T> annotationType) |
static <T extends java.lang.annotation.Annotation> |
annotationFromParameter(ParameterContext context,
java.lang.Class<T> annotationType) |
static <T extends java.lang.annotation.Annotation> |
extractAnnotation(ModelPropertyContext context,
java.lang.Class<T> annotationType) |
static <T extends java.lang.annotation.Annotation> |
validatorFromExpandedParameter(ParameterExpansionContext context,
java.lang.Class<T> annotationType) |
public static final int BEAN_VALIDATOR_PLUGIN_ORDER
public static <T extends java.lang.annotation.Annotation> com.google.common.base.Optional<T> extractAnnotation(ModelPropertyContext context, java.lang.Class<T> annotationType)
public static <T extends java.lang.annotation.Annotation> com.google.common.base.Optional<T> annotationFromBean(ModelPropertyContext context, java.lang.Class<T> annotationType)
public static <T extends java.lang.annotation.Annotation> com.google.common.base.Optional<T> annotationFromField(ModelPropertyContext context, java.lang.Class<T> annotationType)
public static <T extends java.lang.annotation.Annotation> com.google.common.base.Optional<T> annotationFromParameter(ParameterContext context, java.lang.Class<T> annotationType)
public static <T extends java.lang.annotation.Annotation> com.google.common.base.Optional<T> validatorFromExpandedParameter(ParameterExpansionContext context, java.lang.Class<T> annotationType)