Class MapBindingResult

All Implemented Interfaces:
Serializable, BindingResult, Errors

public class MapBindingResult extends AbstractBindingResult implements Serializable
Map-based implementation of the BindingResult interface, supporting registration and evaluation of binding errors on Map attributes.

Can be used as errors holder for custom binding onto a Map, for example when invoking a Validator for a Map object.

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

    • MapBindingResult

      public MapBindingResult(Map<?,?> target, String objectName)
      Create a new MapBindingResult instance.
      Parameters:
      target - the target Map to bind onto
      objectName - the name of the target object
  • Method Details