# Uses of Class
org.springframework.ui.ModelMap

Packages that use ModelMap
Package
Description
org.springframework.ui
Generic support for UI layer concepts.
org.springframework.validation.support
Support classes for handling validation results.

## Uses of ModelMap in org.springframework.ui

Subclasses of ModelMap in org.springframework.ui
Modifier and Type
Class
Description
`class`
`ExtendedModelMap`
Subclass of `ModelMap` that implements the `Model` interface.
Methods in org.springframework.ui that return ModelMap
Modifier and Type
Method
Description
`ModelMap`
ModelMap.`addAllAttributes(Collection<?> attributeValues)`
Copy all attributes in the supplied `Collection` into this `Map`, using attribute name generation for each element.
`ModelMap`
ModelMap.`addAllAttributes(Map<String,?> attributes)`
Copy all attributes in the supplied `Map` into this `Map`.
`ModelMap`
ModelMap.`addAttribute(Object attributeValue)`
Add the supplied attribute to this `Map` using a `generated name`.
`ModelMap`
ModelMap.`addAttribute(String attributeName, Object attributeValue)`
Add the supplied attribute under the supplied name.
`ModelMap`
ModelMap.`mergeAttributes(Map<String,?> attributes)`
Copy all attributes in the supplied `Map` into this `Map`, with existing objects of the same name taking precedence (i.e.

## Uses of ModelMap in org.springframework.validation.support

Subclasses of ModelMap in org.springframework.validation.support
Modifier and Type
Class
Description
`class`
`BindingAwareModelMap`
Subclass of `ExtendedModelMap` that automatically removes a `BindingResult` object if the corresponding target attribute gets replaced through regular `Map` operations.