Package org.apache.storm.validation
package org.apache.storm.validation
-
ClassDescriptionProvides functionality for validating configuration fields.Checks if the named type derives from the specified Class.Validates an entry for ImpersonationAclUser.Validates a Integer.Validates Kryo Registration.Validates each entry in a list against a list of custom Validators.Validates each entry in a list.Validates a list of a list of Strings.validates each key and each value against the respective arrays of validators.validates each key and value in a map of a certain type.validates a list of has no duplicates.Validates if an object is not null.Validates a positive number.Validates if a number is a power of 2.Validates basic types.Validates a String or a list of Strings.Note: every annotation interface must have method `validatorClass()` For every annotation there must validator class to do the validation To add another annotation for config validation, add another annotation @interface class.For custom validators.Custom validator where exactly one of the validations must be successful.Validates each entry in a list with a list of validators Validators with fields: validatorClass and entryValidatorClass.validates each entry in a list is of a certain type.Validates a each key and value in a Map with a list of validators Validator with fields: validatorClass, keyValidatorClasses, valueValidatorClasses.Validates the type of each key and value in a map Validator with fields: validatorClass, keyValidatorClass, valueValidatorClass.Validates that there are no duplicates in a list.Checks if a number is positive and whether zero inclusive Validator with fields: validatorClass, includeZero.Validators with fields: validatorClass.Complex/custom type validators.Validators with fields: validatorClass and type.Validates on object is not null.Field names for annotations.Declares methods for validating configuration values.Declares a method for validating configuration values that is nestable.Annotation that can be used to explicitly call out public static final String fields that are not configs.An interface that is used to inform config validation what to look at.