Class TmaGeographicAddressValidationCreateValidator
java.lang.Object
de.hybris.platform.b2ctelcotmfwebservices.v3.validators.TmaGeographicAddressValidationCreateValidator
- All Implemented Interfaces:
org.springframework.validation.Validator
public class TmaGeographicAddressValidationCreateValidator
extends Object
implements org.springframework.validation.Validator
Validator for
GeographicAddressValidation.- Since:
- 2302
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidprotected voidvalidateCountry(GeographicAddress geographicAddress, org.springframework.validation.Errors errors) Checks if the country code is emptyprotected voidvalidateStateOfProvinceAndPostCode(GeographicAddress geographicAddress, org.springframework.validation.Errors errors) Checks if the at least one of postcode and stateOfProvince are present
-
Constructor Details
-
TmaGeographicAddressValidationCreateValidator
public TmaGeographicAddressValidationCreateValidator()
-
-
Method Details
-
supports
- Specified by:
supportsin interfaceorg.springframework.validation.Validator
-
validate
- Specified by:
validatein interfaceorg.springframework.validation.Validator
-
validateCountry
protected void validateCountry(GeographicAddress geographicAddress, org.springframework.validation.Errors errors) Checks if the country code is empty- Parameters:
geographicAddress- the geographic addresserrors- the errors found
-
validateStateOfProvinceAndPostCode
protected void validateStateOfProvinceAndPostCode(GeographicAddress geographicAddress, org.springframework.validation.Errors errors) Checks if the at least one of postcode and stateOfProvince are present- Parameters:
geographicAddress- the geographic addresserrors- the errors found
-