Class PriceValidator

  • All Implemented Interfaces:
    org.springframework.validation.Validator

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

      Constructors 
      Constructor Description
      PriceValidator()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.String getFieldPath()  
      void setFieldPath​(java.lang.String fieldPath)  
      boolean supports​(java.lang.Class<?> clazz)  
      void validate​(java.lang.Object target, org.springframework.validation.Errors errors)  
      protected void validatePriceWsDTO​(PriceWsDTO price, org.springframework.validation.Errors errors)
      Validation for price of type PriceWsDTO
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PriceValidator

        public PriceValidator()
    • Method Detail

      • supports

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

        public void validate​(java.lang.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 java.lang.String getFieldPath()
      • setFieldPath

        public void setFieldPath​(java.lang.String fieldPath)