java.lang.Object
de.hybris.platform.ordermanagementwebservices.validators.PriceValidator
All Implemented Interfaces:
org.springframework.validation.Validator

public class PriceValidator extends Object implements org.springframework.validation.Validator
Default price validator PriceWsDTO. Checks if a price is valid.
  • Constructor Details

    • PriceValidator

      public PriceValidator()
  • Method Details

    • supports

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

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

      protected void validatePriceWsDTO(PriceWsDTO price, org.springframework.validation.Errors errors)
      Validation for price of type PriceWsDTO
      Parameters:
      price -
      errors -
    • getFieldPath

      protected String getFieldPath()
    • setFieldPath

      public void setFieldPath(String fieldPath)