类 ValidatorImpls.ListEntryCustomValidator
java.lang.Object
org.apache.pulsar.config.validation.Validator
org.apache.pulsar.config.validation.ValidatorImpls.ListEntryCustomValidator
- 封闭类:
- ValidatorImpls
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
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static voidvalidateField(String name, Class<?>[] validators, 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.
-
构造器详细资料
-
ListEntryCustomValidator
-
-
方法详细资料
-
validateField
public static void validateField(String name, Class<?>[] validators, Object o) throws IllegalAccessException, InstantiationException, NoSuchMethodException, InvocationTargetException -
validateField
从类复制的说明: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.- 指定者:
validateField在类中Validator
-