Class BroadleafCommonAddressValidator

java.lang.Object
org.broadleafcommerce.common.web.validator.BroadleafCommonAddressValidator
Direct Known Subclasses:
BillingInfoFormValidator, CustomerAddressValidator, MultishipAddAddressFormValidator, PaymentInfoFormValidator, ShippingInfoFormValidator

public class BroadleafCommonAddressValidator extends Object
Generic Address Validator not specific to a particular Country. Some modules may provide custom validation which can be enabled by setting the SystemProperty "validator.custom.enabled"

If a custom validation is not performed, a generic set of address validation is used. You may configure this validator to only validate a Full Name rather than a separate first and last name, by setting the SystemProperty "validator.address.fullNameOnly"

Author:
Elbert Bautista (elbertbautista)
  • Field Details

  • Constructor Details

    • BroadleafCommonAddressValidator

      public BroadleafCommonAddressValidator()
  • Method Details

    • isValidateFullNameOnly

      public boolean isValidateFullNameOnly()
    • isCustomValidationEnabled

      public boolean isCustomValidationEnabled()
    • validate

      public void validate(BroadleafFormType formType, Address address, org.springframework.validation.Errors errors)