Class ValidatorKit
java.lang.Object
com.iohao.net.framework.core.kit.ValidatorKit
Jakarta Bean Validation utilities for validating action method parameters.
- Author:
- 渔民小镇
- date:
- 2022-01-16
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisValidator(Class<?> paramClazz) Whether the parameter type needs validationstatic voidsetValidator(ParameterValidator validator) static StringValidate the given object against the specified validation groups.
-
Method Details
-
validate
-
isValidator
Whether the parameter type needs validation- Parameters:
paramClazz- Parameter type- Returns:
- true if this is a parameter that needs validation
-
setValidator
-