public interface ExecutableMethodValidator
extends javax.validation.executable.ExecutableValidator
ExecutableValidator
that operates on ExecutableMethod
instances.Modifier and Type | Method and Description |
---|---|
<T> T |
createValid(java.lang.Class<T> type,
java.lang.Object... arguments)
Create a new valid instance.
|
<T> java.util.Set<javax.validation.ConstraintViolation<T>> |
validateConstructorParameters(BeanIntrospection<? extends T> introspection,
java.lang.Object[] parameterValues,
java.lang.Class<?>... groups)
Validates parameters for the given introspection and values.
|
<T> java.util.Set<javax.validation.ConstraintViolation<T>> |
validateConstructorParameters(java.lang.Class<? extends T> beanType,
Argument<?>[] constructorArguments,
java.lang.Object[] parameterValues,
java.lang.Class<?>[] groups)
Validates arguments for the given bean type and constructor arguments.
|
<T> java.util.Set<javax.validation.ConstraintViolation<T>> |
validateConstructorParameters(java.lang.reflect.Constructor<? extends T> constructor,
java.lang.Object[] parameterValues,
java.lang.Class<?>... groups) |
<T> java.util.Set<javax.validation.ConstraintViolation<T>> |
validateConstructorReturnValue(java.lang.reflect.Constructor<? extends T> constructor,
T createdObject,
java.lang.Class<?>... groups) |
<T> java.util.Set<javax.validation.ConstraintViolation<T>> |
validateParameters(T object,
ExecutableMethod method,
java.util.Collection<MutableArgumentValue<?>> argumentValues,
java.lang.Class<?>... groups)
Validate the parameter values of the given
ExecutableMethod . |
<T> java.util.Set<javax.validation.ConstraintViolation<T>> |
validateParameters(T object,
ExecutableMethod method,
java.lang.Object[] parameterValues,
java.lang.Class<?>... groups)
Validate the parameter values of the given
ExecutableMethod . |
<T> java.util.Set<javax.validation.ConstraintViolation<T>> |
validateParameters(T object,
java.lang.reflect.Method method,
java.lang.Object[] parameterValues,
java.lang.Class<?>... groups) |
<T> java.util.Set<javax.validation.ConstraintViolation<T>> |
validateReturnValue(T object,
ExecutableMethod<?,java.lang.Object> executableMethod,
java.lang.Object returnValue,
java.lang.Class<?>... groups)
Validates the return value of a
ExecutableMethod . |
<T> java.util.Set<javax.validation.ConstraintViolation<T>> |
validateReturnValue(T object,
java.lang.reflect.Method method,
java.lang.Object returnValue,
java.lang.Class<?>... groups) |
@NonNull <T> T createValid(@NonNull java.lang.Class<T> type, java.lang.Object... arguments) throws javax.validation.ConstraintViolationException
T
- the generic typetype
- The typearguments
- The argumentsjavax.validation.ConstraintViolationException
- If a valid instance couldn't be constructedjava.lang.IllegalArgumentException
- If an argument is invalid@NonNull <T> java.util.Set<javax.validation.ConstraintViolation<T>> validateParameters(@NonNull T object, @NonNull ExecutableMethod method, @NonNull java.lang.Object[] parameterValues, @Nullable java.lang.Class<?>... groups)
ExecutableMethod
.T
- The object typeobject
- The objectmethod
- The methodparameterValues
- The valuesgroups
- The groups@NonNull <T> java.util.Set<javax.validation.ConstraintViolation<T>> validateParameters(@NonNull T object, @NonNull ExecutableMethod method, @NonNull java.util.Collection<MutableArgumentValue<?>> argumentValues, @Nullable java.lang.Class<?>... groups)
ExecutableMethod
.T
- The object typeobject
- The objectmethod
- The methodargumentValues
- The valuesgroups
- The groups@NonNull <T> java.util.Set<javax.validation.ConstraintViolation<T>> validateReturnValue(@NonNull T object, @NonNull ExecutableMethod<?,java.lang.Object> executableMethod, @Nullable java.lang.Object returnValue, @Nullable java.lang.Class<?>... groups)
ExecutableMethod
.T
- The object typeobject
- The objectexecutableMethod
- The methodreturnValue
- The return valuegroups
- The groups@NonNull <T> java.util.Set<javax.validation.ConstraintViolation<T>> validateConstructorParameters(@NonNull BeanIntrospection<? extends T> introspection, @NonNull java.lang.Object[] parameterValues, @Nullable java.lang.Class<?>... groups)
T
- The bean type.introspection
- The introspectionparameterValues
- The parameter valuesgroups
- The groups<T> java.util.Set<javax.validation.ConstraintViolation<T>> validateConstructorParameters(@NonNull java.lang.Class<? extends T> beanType, @NonNull Argument<?>[] constructorArguments, @NonNull java.lang.Object[] parameterValues, @Nullable java.lang.Class<?>[] groups)
T
- The generic type of the beanbeanType
- The bean typeconstructorArguments
- The constructor argumentsparameterValues
- The parameter valuesgroups
- The validation groups@NonNull <T> java.util.Set<javax.validation.ConstraintViolation<T>> validateParameters(@NonNull T object, @NonNull java.lang.reflect.Method method, @NonNull java.lang.Object[] parameterValues, @Nullable java.lang.Class<?>... groups)
validateParameters
in interface javax.validation.executable.ExecutableValidator
@NonNull <T> java.util.Set<javax.validation.ConstraintViolation<T>> validateReturnValue(@NonNull T object, @NonNull java.lang.reflect.Method method, @Nullable java.lang.Object returnValue, @Nullable java.lang.Class<?>... groups)
validateReturnValue
in interface javax.validation.executable.ExecutableValidator
@NonNull <T> java.util.Set<javax.validation.ConstraintViolation<T>> validateConstructorParameters(@NonNull java.lang.reflect.Constructor<? extends T> constructor, @NonNull java.lang.Object[] parameterValues, @Nullable java.lang.Class<?>... groups)
validateConstructorParameters
in interface javax.validation.executable.ExecutableValidator
@NonNull <T> java.util.Set<javax.validation.ConstraintViolation<T>> validateConstructorReturnValue(@NonNull java.lang.reflect.Constructor<? extends T> constructor, @NonNull T createdObject, @Nullable java.lang.Class<?>... groups)
validateConstructorReturnValue
in interface javax.validation.executable.ExecutableValidator