public abstract static class ConfigValidationUtils.NestableFieldValidator extends Object implements ConfigValidationUtils.FieldValidator
Declares a method for validating configuration values that is nestable.
Constructor and Description |
---|
NestableFieldValidator() |
Modifier and Type | Method and Description |
---|---|
void |
validateField(String name,
Object field)
Validates the given field.
|
abstract void |
validateField(String pd,
String name,
Object field)
Validates the given field.
|
public void validateField(String name, Object field) throws IllegalArgumentException
ConfigValidationUtils.FieldValidator
Validates the given field.
validateField
in interface ConfigValidationUtils.FieldValidator
name
- the name of the field.field
- The field to be validated.IllegalArgumentException
- if the field fails validation.public abstract void validateField(String pd, String name, Object field) throws IllegalArgumentException
Validates the given field.
pd
- describes the parent wrapping this validator.name
- the name of the field.field
- The field to be validated.IllegalArgumentException
- if the field fails validation.Copyright © 2020 The Apache Software Foundation. All rights reserved.