public interface ExecutableMethodValidator extends javax.validation.executable.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(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@Nonnull <T> Set<ConstraintViolation<T>> validateParameters(@Nonnull T object, @Nonnull Method method, @Nonnull Object[] parameterValues, @Nullable Class<?>... groups)
validateParameters in interface javax.validation.executable.ExecutableValidator@Nonnull <T> Set<ConstraintViolation<T>> validateReturnValue(@Nonnull T object, @Nonnull Method method, @Nullable Object returnValue, @Nullable Class<?>... groups)
validateReturnValue in interface javax.validation.executable.ExecutableValidator@Nonnull <T> Set<ConstraintViolation<T>> validateConstructorParameters(@Nonnull Constructor<? extends T> constructor, @Nonnull Object[] parameterValues, @Nullable Class<?>... groups)
validateConstructorParameters in interface javax.validation.executable.ExecutableValidator@Nonnull <T> Set<ConstraintViolation<T>> validateConstructorReturnValue(@Nonnull Constructor<? extends T> constructor, @Nonnull T createdObject, @Nullable Class<?>... groups)
validateConstructorReturnValue in interface javax.validation.executable.ExecutableValidator