Class ValidatorImpls.MapEntryCustomValidator
java.lang.Object
org.apache.pulsar.config.validation.Validator
org.apache.pulsar.config.validation.ValidatorImpls.MapEntryCustomValidator
- Enclosing class:
- ValidatorImpls
validates each key and each value against the respective arrays of validators.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidvalidateField(String name, Class<?>[] keyValidators, Class<?>[] valueValidators, Object o) voidvalidateField(String name, Object o) validate the field value o that belogs to the field which is named name This method should throw IllegalArgumentException in case o doesn't validate per this validator's implementation.
-
Constructor Details
-
MapEntryCustomValidator
-
-
Method Details
-
validateField
public static void validateField(String name, Class<?>[] keyValidators, Class<?>[] valueValidators, Object o) throws IllegalAccessException, InstantiationException, NoSuchMethodException, InvocationTargetException -
validateField
Description copied from class:Validatorvalidate the field value o that belogs to the field which is named name This method should throw IllegalArgumentException in case o doesn't validate per this validator's implementation.- Specified by:
validateFieldin classValidator
-