Class BindingAwareModelMap
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<K,V>
java.util.LinkedHashMap<String,Object>
org.springframework.ui.ModelMap
org.springframework.ui.ExtendedModelMap
org.springframework.validation.support.BindingAwareModelMap
Subclass of
ExtendedModelMap that automatically removes
a BindingResult object if the corresponding
target attribute gets replaced through regular Map operations.
This is the class exposed to handler methods by Spring MVC, typically consumed through
a declaration of the Model interface. There is no need to
build it within user code; a plain ModelMap or even a just
a regular Map with String keys will be good enough to return a user model.
- Since:
- 2.5.6
- Author:
- Juergen Hoeller
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.springframework.ui.ExtendedModelMap
addAllAttributes, addAllAttributes, addAttribute, addAttribute, asMap, mergeAttributesMethods inherited from class org.springframework.ui.ModelMap
containsAttribute, getAttributeMethods inherited from class java.util.LinkedHashMap
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, valuesMethods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, putIfAbsent, remove, remove, replace, replace, sizeMethods inherited from class java.util.AbstractMap
equals, hashCode, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, putIfAbsent, remove, remove, replace, replace, sizeMethods inherited from interface org.springframework.ui.Model
containsAttribute, getAttribute