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 specifiedRegionModel
of theAddressModel
belongs to the specifiedCountryModel
of theAddressModel
.
-
-
Constructor Summary
Constructors Constructor Description AddressValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onValidate(java.lang.Object model, InterceptorContext ctx)
Validates if the specifiedRegionModel
of theAddressModel
belongs to the specifiedCountryModel
of theAddressModel
.
-
-
-
Method Detail
-
onValidate
public void onValidate(java.lang.Object model, InterceptorContext ctx) throws InterceptorException
Validates if the specifiedRegionModel
of theAddressModel
belongs to the specifiedCountryModel
of theAddressModel
.- Specified by:
onValidate
in interfaceValidateInterceptor
- Parameters:
model
- the model which values has to be validatedctx
- theInterceptorContext
- Throws:
InterceptorException
- if any values of the model are not valid.
-
-