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