Class CountryAwareAddressDTOValidator
java.lang.Object
de.hybris.platform.commercewebservices.core.validator.CountryAwareAddressDTOValidator
- All Implemented Interfaces:
org.springframework.validation.Validator
public class CountryAwareAddressDTOValidator
extends Object
implements org.springframework.validation.Validator
Implementation of
Validator that validate instances of AddressWsDTO.
The CountryAwareAddressValidator does not validate all fields itself, but delegates to other Validators
countrySpecificAddressWsDTOValidators. AddressValidator uses the country.isocode field to select a
suitable validator for a specific country. If a matching validator cannot be found,
commonAddressWsDTOValidator is used.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.validation.ValidatorvoidsetCommonAddressValidator(org.springframework.validation.Validator commonAddressValidator) voidsetCountrySpecificAddressValidators(Map<String, org.springframework.validation.Validator> customAddressValidators) booleanvoid
-
Constructor Details
-
CountryAwareAddressDTOValidator
public CountryAwareAddressDTOValidator()
-
-
Method Details
-
supports
- Specified by:
supportsin interfaceorg.springframework.validation.Validator
-
validate
- Specified by:
validatein interfaceorg.springframework.validation.Validator
-
getCommonAddressValidator
public org.springframework.validation.Validator getCommonAddressValidator() -
setCommonAddressValidator
public void setCommonAddressValidator(org.springframework.validation.Validator commonAddressValidator) -
getCountrySpecificAddressValidators
-
setCountrySpecificAddressValidators
-