public class AddressValidator extends java.lang.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(java.lang.Object model,
InterceptorContext ctx)
Validates if the specified
RegionModel of the AddressModel belongs to the specified
CountryModel of the AddressModel. |
public void onValidate(java.lang.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 © 2018 SAP SE. All Rights Reserved.