接口的使用
cn.taketoday.validation.BindingResult
使用BindingResult的程序包
程序包
说明
Provides data binding and validation functionality,
for usage in business and/or UI layers.
Support classes for integrating a JSR-303 Bean Validation provider
(such as Hibernate Validator) into a Framework ApplicationContext
and in particular with Framework's data binding and validation APIs.
-
cn.taketoday.validation中BindingResult的使用
修饰符和类型类说明classAbstract implementation of theBindingResultinterface and its super-interfaceErrors.classAbstract base class forBindingResultimplementations that work with Framework'sPropertyAccessormechanism.classDefault implementation of theErrorsandBindingResultinterfaces, for the registration and evaluation of binding errors on JavaBean objects.classThrown when binding errors are considered fatal.classSpecial implementation of the Errors and BindingResult interfaces, supporting registration and evaluation of binding errors on value objects.classMap-based implementation of the BindingResult interface, supporting registration and evaluation of binding errors on Map attributes.修饰符和类型方法说明final BindingResultBindException.getBindingResult()Return the BindingResult that this BindException wraps.static BindingResultBindingResultUtils.getBindingResult(Map<?, ?> model, String name) Find the BindingResult for the given name in the given model.DataBinder.getBindingResult()Return the BindingResult instance created by this DataBinder.static BindingResultBindingResultUtils.getRequiredBindingResult(Map<?, ?> model, String name) Find a required BindingResult for the given name in the given model.参数类型为BindingResult的cn.taketoday.validation中的方法修饰符和类型方法说明voidBindingErrorProcessor.processMissingFieldError(String missingField, BindingResult bindingResult) Apply the missing field error to the given BindException.voidDefaultBindingErrorProcessor.processMissingFieldError(String missingField, BindingResult bindingResult) voidBindingErrorProcessor.processPropertyAccessException(PropertyAccessException ex, BindingResult bindingResult) Translate the givenPropertyAccessExceptionto an appropriate error registered on the givenErrorsinstance.voidDefaultBindingErrorProcessor.processPropertyAccessException(PropertyAccessException ex, BindingResult bindingResult) 参数类型为BindingResult的cn.taketoday.validation中的构造器限定符构造器说明BindException(BindingResult bindingResult) Create a new BindException instance for a BindingResult. -
cn.taketoday.validation.beanvalidation中BindingResult的使用
修饰符和类型方法说明protected ObjectInfraValidatorAdapter.getRejectedValue(String field, jakarta.validation.ConstraintViolation<Object> violation, BindingResult bindingResult) Extract the rejected value behind the given constraint violation, for exposure through the Framework errors representation.