org.springframework.validation

Class MapBindingResult

  • All Implemented Interfaces:
    java.io.Serializable, BindingResult, Errors


    public class MapBindingResult
    extends AbstractBindingResult
    implements java.io.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:
    Map, Serialized Form
    • Constructor Detail

      • MapBindingResult

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