Class BeanPropertyBindingResult

All Implemented Interfaces:
Serializable, BindingResult, Errors

public class BeanPropertyBindingResult extends AbstractPropertyBindingResult implements Serializable
Default implementation of the Errors and BindingResult interfaces, for the registration and evaluation of binding errors on JavaBean objects.

Performs standard JavaBean property access, also supporting nested properties. Normally, application code will work with the Errors interface or the BindingResult interface. A DataBinder returns its BindingResult via DataBinder.getBindingResult().

Since:
2.0
Author:
Juergen Hoeller
See Also:
  • Constructor Details

    • BeanPropertyBindingResult

      public BeanPropertyBindingResult(@Nullable Object target, String objectName)
      Create a new BeanPropertyBindingResult for the given target.
      Parameters:
      target - the target bean to bind onto
      objectName - the name of the target object
    • BeanPropertyBindingResult

      public BeanPropertyBindingResult(@Nullable Object target, String objectName, boolean autoGrowNestedPaths, int autoGrowCollectionLimit)
      Create a new BeanPropertyBindingResult for the given target.
      Parameters:
      target - the target bean to bind onto
      objectName - the name of the target object
      autoGrowNestedPaths - whether to "auto-grow" a nested path that contains a null value
      autoGrowCollectionLimit - the limit for array and collection auto-growing
  • Method Details