# Uses of Interface
org.springframework.ui.Model

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

## Uses of Model in org.springframework.ui

Classes in org.springframework.ui that implement Model
Modifier and Type
Class
Description
`class`
`ConcurrentModel`
Implementation of the `Model` interface based on a `ConcurrentHashMap` for use in concurrent scenarios.
`class`
`ExtendedModelMap`
Subclass of `ModelMap` that implements the `Model` interface.
Methods in org.springframework.ui that return Model
Modifier and Type
Method
Description
`Model`
Model.`addAllAttributes(Collection<?> attributeValues)`
Copy all attributes in the supplied `Collection` into this `Map`, using attribute name generation for each element.
`Model`
Model.`addAllAttributes(Map<String,?> attributes)`
Copy all attributes in the supplied `Map` into this `Map`.
`Model`
Model.`addAttribute(Object attributeValue)`
Add the supplied attribute to this `Map` using a `generated name`.
`Model`
Model.`addAttribute(String attributeName, Object attributeValue)`
Add the supplied attribute under the supplied name.
`Model`
Model.`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 Model in org.springframework.validation.support

Classes in org.springframework.validation.support that implement Model
Modifier and Type
Class
Description
`class`
`BindingAwareConcurrentModel`
Subclass of `ConcurrentModel` that automatically removes the `BindingResult` object when its corresponding target attribute is replaced through regular `Map` operations.
`class`
`BindingAwareModelMap`
Subclass of `ExtendedModelMap` that automatically removes a `BindingResult` object if the corresponding target attribute gets replaced through regular `Map` operations.