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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidprotected voidvalidateCountry(GeographicAddress geographicAddress, org.springframework.validation.Errors errors) Checks is the country code is emptyprotected voidvalidatePostCode(GeographicAddress geographicAddress, org.springframework.validation.Errors errors) Checks if the post code is empty
-
Constructor Details
-
TmaGeoraphicAddressValidator
public TmaGeoraphicAddressValidator()
-
-
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 is the country code is empty- Parameters:
geographicAddress- the geographic addresserrors- 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 addresserrors- the errors found
-