Class TaxInvoiceValidator

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

    @Component("taxInvoiceValidator")
    public class TaxInvoiceValidator
    extends java.lang.Object
    implements org.springframework.validation.Validator
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean supports​(java.lang.Class<?> clazz)  
      void validate​(java.lang.Object object, org.springframework.validation.Errors errors)  
      protected static void validateInvoiceName​(TaxInvoiceForm invoiceForm, int maxFieldLength, org.springframework.validation.Errors errors)  
      protected static void validateNotNullField​(java.lang.String invoiceField, de.hybris.platform.chinesetaxinvoiceaddon.forms.validation.TaxInvoiceValidator.InvoiceField fieldType, org.springframework.validation.Errors errors)  
      • Methods inherited from class java.lang.Object

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

      • TaxInvoiceValidator

        public TaxInvoiceValidator()
    • 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 object,
                             org.springframework.validation.Errors errors)
        Specified by:
        validate in interface org.springframework.validation.Validator
      • validateInvoiceName

        protected static void validateInvoiceName​(TaxInvoiceForm invoiceForm,
                                                  int maxFieldLength,
                                                  org.springframework.validation.Errors errors)
      • validateNotNullField

        protected static void validateNotNullField​(java.lang.String invoiceField,
                                                   de.hybris.platform.chinesetaxinvoiceaddon.forms.validation.TaxInvoiceValidator.InvoiceField fieldType,
                                                   org.springframework.validation.Errors errors)