类 DirectFieldBindingResult

所有已实现的接口:
BindingResult, Errors, Serializable

public class DirectFieldBindingResult extends AbstractPropertyBindingResult
Special implementation of the Errors and BindingResult interfaces, supporting registration and evaluation of binding errors on value objects. Performs direct field access instead of going through JavaBean getters.

this implementation is able to traverse nested fields.

从以下版本开始:
4.0
作者:
Juergen Hoeller
另请参阅:
  • 构造器详细资料

    • DirectFieldBindingResult

      public DirectFieldBindingResult(@Nullable Object target, String objectName)
      Create a new DirectFieldBindingResult instance.
      参数:
      target - the target object to bind onto
      objectName - the name of the target object
    • DirectFieldBindingResult

      public DirectFieldBindingResult(@Nullable Object target, String objectName, boolean autoGrowNestedPaths)
      Create a new DirectFieldBindingResult instance.
      参数:
      target - the target object to bind onto
      objectName - the name of the target object
      autoGrowNestedPaths - whether to "auto-grow" a nested path that contains a null value
  • 方法详细资料