All Superinterfaces:
org.springframework.validation.SmartValidator, org.springframework.validation.Validator
All Known Subinterfaces:
FulfillmentAddressSubmitValidator, FulfillmentGroupSubmitValidator, FulfillmentItemSubmitValidator, FulfillmentOptionSubmitValidator, PricedFulfillmentOptionSubmitValidator, TypeFulfillmentGroupSubmitValidator
All Known Implementing Classes:
AbstractTypeFulfillmentGroupSubmitValidator, DefaultFulfillmentAddressSubmitValidator, DefaultFulfillmentGroupSubmitValidator, DefaultPricedFulfillmentOptionSubmitValidator, PickupTypeFulfillmentGroupSubmitValidator, ShipTypeFulfillmentGroupSubmitValidator, VirtualTypeFulfillmentGroupSubmitValidator

public interface FulfillmentValidator extends org.springframework.validation.SmartValidator
Author:
Jacob Mitash
  • Method Summary

    Modifier and Type
    Method
    Description
    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 org.springframework.validation.Errors
    validate(Object target, Object... validationHints)
    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 void
    validateWithDataHolder(Object target, org.springframework.validation.Errors errors, Set<Object> validationHints, FulfillmentValidationDataHolder dataHolder)
    Validates the target and uses FulfillmentValidationDataHolder parameter that can be used to hold some additional data needed for the validation.

    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

      default boolean supports(Class<?> clazz)
      Specified by:
      supports in interface org.springframework.validation.Validator
    • validate

      default org.springframework.validation.Errors validate(Object target)
      Validates the supplied target, automatically binding and returning errors.
      Parameters:
      target - the target to validate
      Returns:
      any validation errors found with the target
    • validate

      default org.springframework.validation.Errors validate(Object target, Object... validationHints)
      Validates the supplied target, automatically binding and returning errors.
      Parameters:
      target - the target to validate
      validationHints - any hints to use during the validation
      Returns:
      any validation errors found with the target
    • validate

      default void validate(Object target, org.springframework.validation.Errors errors)
      Specified by:
      validate in interface org.springframework.validation.Validator
    • validate

      default void validate(Object target, org.springframework.validation.Errors errors, Object... validationHints)
      Specified by:
      validate in interface org.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 validation
      errors - an errors container to place rejections and pull values from
      validationHints - any hints that should be used during validation
    • validateWithDataHolder

      default void validateWithDataHolder(Object target, org.springframework.validation.Errors errors, Set<Object> validationHints, FulfillmentValidationDataHolder dataHolder)
      Validates the target and uses FulfillmentValidationDataHolder parameter that can be used to hold some additional data needed for the validation.
      Parameters:
      target - the target of the validation
      errors - an errors container to place rejections and pull values from
      validationHints - any hints that should be used during validation
      dataHolder - the state holder that can be used to store some additional data required for validation