Class AddressValidator
java.lang.Object
de.hybris.platform.servicelayer.interceptor.impl.AddressValidator
- All Implemented Interfaces:
Interceptor,ValidateInterceptor
Validator which checks if the specified
RegionModel of the AddressModel belongs to the specified
CountryModel of the AddressModel.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonValidate(Object model, InterceptorContext ctx) Validates if the specifiedRegionModelof theAddressModelbelongs to the specifiedCountryModelof theAddressModel.
-
Constructor Details
-
AddressValidator
public AddressValidator()
-
-
Method Details
-
onValidate
Validates if the specifiedRegionModelof theAddressModelbelongs to the specifiedCountryModelof theAddressModel.- Specified by:
onValidatein interfaceValidateInterceptor- Parameters:
model- the model which values has to be validatedctx- theInterceptorContext- Throws:
InterceptorException- if any values of the model are not valid.
-