Class AddressValidator
- java.lang.Object
-
- de.hybris.platform.servicelayer.interceptor.impl.AddressValidator
-
- All Implemented Interfaces:
Interceptor,ValidateInterceptor
public class AddressValidator extends java.lang.Object implements ValidateInterceptor
Validator which checks if the specifiedRegionModelof theAddressModelbelongs to the specifiedCountryModelof theAddressModel.
-
-
Constructor Summary
Constructors Constructor Description AddressValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonValidate(java.lang.Object model, InterceptorContext ctx)Validates if the specifiedRegionModelof theAddressModelbelongs to the specifiedCountryModelof theAddressModel.
-
-
-
Method Detail
-
onValidate
public void onValidate(java.lang.Object model, InterceptorContext ctx) throws InterceptorExceptionValidates 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.
-
-