Interface FulfillmentValidator
- All Superinterfaces:
org.springframework.validation.SmartValidator
,org.springframework.validation.Validator
- All Known Subinterfaces:
FulfillmentAddressSubmitValidator
,FulfillmentGroupSubmitValidator
,FulfillmentItemSubmitValidator
,FulfillmentOptionSubmitValidator
,TypeFulfillmentGroupSubmitValidator
- All Known Implementing Classes:
AbstractTypeFulfillmentGroupSubmitValidator
,DefaultFulfillmentAddressSubmitValidator
,DefaultFulfillmentGroupSubmitValidator
,PickupTypeFulfillmentGroupSubmitValidator
,ShipTypeFulfillmentGroupSubmitValidator
,VirtualTypeFulfillmentGroupSubmitValidator
public interface FulfillmentValidator
extends org.springframework.validation.SmartValidator
- Author:
- Jacob Mitash
-
Method Summary
Modifier and TypeMethodDescriptionClass<?>
Gets the class that this validator supports.default boolean
default org.springframework.validation.Errors
Validates the supplied target, automatically binding and returning errors.default org.springframework.validation.Errors
Validates the supplied target, automatically binding and returning errors.default void
default void
void
Validates the target.Methods inherited from interface org.springframework.validation.SmartValidator
validateValue
-
Method Details
-
getSupportedClass
Class<?> getSupportedClass()Gets the class that this validator supports.- Returns:
- the class that this validator support
-
supports
- Specified by:
supports
in interfaceorg.springframework.validation.Validator
-
validate
Validates the supplied target, automatically binding and returning errors.- Parameters:
target
- the target to validate- Returns:
- any validation errors found with the target
-
validate
Validates the supplied target, automatically binding and returning errors.- Parameters:
target
- the target to validatevalidationHints
- any hints to use during the validation- Returns:
- any validation errors found with the target
-
validate
- Specified by:
validate
in interfaceorg.springframework.validation.Validator
-
validate
default void validate(Object target, org.springframework.validation.Errors errors, Object... validationHints) - Specified by:
validate
in interfaceorg.springframework.validation.SmartValidator
-
validate
void validate(Object target, org.springframework.validation.Errors errors, Set<Object> validationHints) Validates the target.- Parameters:
target
- the target of the validationerrors
- an errors container to place rejections and pull values fromvalidationHints
- any hints that should be used during validation
-