Class TmaGeoraphicAddressValidator
- java.lang.Object
-
- de.hybris.platform.b2ctelcotmfwebservices.validators.TmaGeoraphicAddressValidator
-
- All Implemented Interfaces:
org.springframework.validation.Validator
public class TmaGeoraphicAddressValidator extends java.lang.Object implements org.springframework.validation.ValidatorValidator forGeographicAddress.- Since:
- 2003
-
-
Constructor Summary
Constructors Constructor Description TmaGeoraphicAddressValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleansupports(java.lang.Class<?> aClass)voidvalidate(java.lang.Object object, org.springframework.validation.Errors errors)protected 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
-
-
-
Method Detail
-
supports
public boolean supports(java.lang.Class<?> aClass)
- Specified by:
supportsin interfaceorg.springframework.validation.Validator
-
validate
public void validate(java.lang.Object object, org.springframework.validation.Errors errors)- 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
-
-