类的使用
cn.taketoday.validation.ObjectError
使用ObjectError的程序包
程序包
说明
Binding validation support.
Provides data binding and validation functionality,
for usage in business and/or UI layers.
-
cn.taketoday.context.properties.bind.validation中ObjectError的使用
返回变量类型为ObjectError的类型的cn.taketoday.context.properties.bind.validation中的方法修饰符和类型方法说明ValidationErrors.getAllErrors()Return the list of all validation errors.ValidationErrors.iterator() -
cn.taketoday.validation中ObjectError的使用
修饰符和类型类说明classEncapsulates a field error, that is, a reason for rejecting a specific field value.修饰符和类型方法说明AbstractBindingResult.getGlobalError()AbstractErrors.getGlobalError()BindException.getGlobalError()Errors.getGlobalError()Get the first global error, if any.返回变量类型为ObjectError的类型的cn.taketoday.validation中的方法修饰符和类型方法说明AbstractBindingResult.getAllErrors()AbstractErrors.getAllErrors()BindException.getAllErrors()Errors.getAllErrors()Get all errors, both global and field ones.AbstractBindingResult.getGlobalErrors()BindException.getGlobalErrors()Errors.getGlobalErrors()Get all global errors.参数类型为ObjectError的cn.taketoday.validation中的方法修饰符和类型方法说明voidAbstractBindingResult.addError(ObjectError error) voidBindException.addError(ObjectError error) voidBindingResult.addError(ObjectError error) Add a customObjectErrororFieldErrorto the errors list.