spring-framework / org.springframework.validation / MapBindingResult

MapBindingResult

open class MapBindingResult : AbstractBindingResult, 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.

Author
Juergen Hoeller

Since
2.0

See Also
java.util.Map

Constructors

<init>

MapBindingResult(target: MutableMap<*, *>, objectName: String)

Create a new MapBindingResult instance.

Functions

getTarget

fun getTarget(): Any

getTargetMap

fun getTargetMap(): MutableMap<*, *>