Class Validator
java.lang.Object
org.apache.pulsar.config.validation.Validator
- Direct Known Subclasses:
ValidatorImpls.ImplementsClassesValidator,ValidatorImpls.ImplementsClassValidator,ValidatorImpls.ListEntryCustomValidator,ValidatorImpls.ListEntryTypeValidator,ValidatorImpls.MapEntryCustomValidator,ValidatorImpls.MapEntryTypeValidator,ValidatorImpls.NotNullValidator,ValidatorImpls.PositiveNumberValidator,ValidatorImpls.SimpleTypeValidator,ValidatorImpls.StringValidator
Primary validation interface. All validators should extend this abstract class and implement
the validateField method.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract 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
-
Validator
-
Validator
public Validator()
-
-
Method Details
-
validateField
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.
-