Class TmaGeoraphicAddressValidator

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

public class TmaGeoraphicAddressValidator extends Object implements org.springframework.validation.Validator
Validator for GeographicAddress.
Since:
2003
  • Constructor Details

    • TmaGeoraphicAddressValidator

      public TmaGeoraphicAddressValidator()
  • Method Details

    • supports

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

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

      protected void validateCountry(GeographicAddress geographicAddress, org.springframework.validation.Errors errors)
      Checks is the country code is empty
      Parameters:
      geographicAddress - the geographic address
      errors - the errors found
    • validatePostCode

      protected void validatePostCode(GeographicAddress geographicAddress, org.springframework.validation.Errors errors)
      Checks if the post code is empty
      Parameters:
      geographicAddress - the geographic address
      errors - the errors found