Class ValidatorImpls.ListEntryCustomValidator
- java.lang.Object
-
- org.apache.pulsar.config.validation.Validator
-
- org.apache.pulsar.config.validation.ValidatorImpls.ListEntryCustomValidator
-
- Enclosing class:
- ValidatorImpls
public static class ValidatorImpls.ListEntryCustomValidator extends Validator
Validates each entry in a list against a list of custom Validators. Each validator in the list of validators must inherit or be an instance of Validator class
-
-
Constructor Summary
Constructors Constructor Description ListEntryCustomValidator(java.util.Map<java.lang.String,java.lang.Object> params)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidvalidateField(java.lang.String name, java.lang.Class<?>[] validators, java.lang.Object o)voidvalidateField(java.lang.String name, java.lang.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.
-
-
-
Method Detail
-
validateField
public static void validateField(java.lang.String name, java.lang.Class<?>[] validators, java.lang.Object o) throws java.lang.IllegalAccessException, java.lang.InstantiationException, java.lang.NoSuchMethodException, java.lang.reflect.InvocationTargetException- Throws:
java.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionjava.lang.NoSuchMethodExceptionjava.lang.reflect.InvocationTargetException
-
validateField
public void validateField(java.lang.String name, java.lang.Object o)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
-
-