public interface FulfillmentValidator
extends org.springframework.validation.SmartValidator
Modifier and Type | Method and Description |
---|---|
Class<?> |
getSupportedClass()
Gets the class that this validator supports.
|
default boolean |
supports(Class<?> clazz) |
default org.springframework.validation.Errors |
validate(Object target)
Validates the supplied target, automatically binding and returning errors.
|
default void |
validate(Object target,
org.springframework.validation.Errors errors) |
default void |
validate(Object target,
org.springframework.validation.Errors errors,
Object... validationHints) |
void |
validate(Object target,
org.springframework.validation.Errors errors,
Set<Object> validationHints)
Validates the target.
|
default org.springframework.validation.Errors |
validate(Object target,
Object... validationHints)
Validates the supplied target, automatically binding and returning errors.
|
Class<?> getSupportedClass()
default boolean supports(Class<?> clazz)
supports
in interface org.springframework.validation.Validator
default org.springframework.validation.Errors validate(Object target)
target
- the target to validatedefault org.springframework.validation.Errors validate(Object target, Object... validationHints)
target
- the target to validatevalidationHints
- any hints to use during the validationdefault void validate(Object target, org.springframework.validation.Errors errors)
validate
in interface org.springframework.validation.Validator
default void validate(Object target, org.springframework.validation.Errors errors, Object... validationHints)
validate
in interface org.springframework.validation.SmartValidator
void validate(Object target, org.springframework.validation.Errors errors, Set<Object> validationHints)
target
- the target of the validationerrors
- an errors container to place rejections and pull values fromvalidationHints
- any hints that should be used during validationCopyright © 2021. All rights reserved.