public class AddressValidator extends Object implements ValidateInterceptor
RegionModel of the AddressModel belongs to the specified
CountryModel of the AddressModel.| Constructor and Description |
|---|
AddressValidator() |
| Modifier and Type | Method and Description |
|---|---|
void |
onValidate(Object model,
InterceptorContext ctx)
Validates if the specified
RegionModel of the AddressModel belongs to the specified
CountryModel of the AddressModel. |
public void onValidate(Object model, InterceptorContext ctx) throws InterceptorException
RegionModel of the AddressModel belongs to the specified
CountryModel of the AddressModel.onValidate in interface ValidateInterceptormodel - the model which values has to be validatedctx - the InterceptorContextInterceptorException - if any values of the model are not valid.Copyright © 2017 SAP SE. All Rights Reserved.