ModelMap that implements the Model interface.
This is an implementation class exposed to handler methods by Spring MVC, typically via
a declaration of the org. interface. There is no need to
build it within user code; a plain org. or even a just
a regular Map with String keys will be good enough to return a user model.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public ExtendedModelMap | addAllAttributes(Collection<?> attributeValues)
Overrides org. Implements org. Collection into this
Map, using attribute name generation for each element.
|
| public ExtendedModelMap | addAllAttributes(Map<String, ?> attributes)
Overrides org. Implements org. Map into this Map.
|
| public ExtendedModelMap | addAttribute(String
the name of the model attribute (never attributeName, Object null)the model attribute value (can be attributeValue)null)Overrides org. Implements org. |
| public ExtendedModelMap | addAttribute(Object
the model attribute value (never attributeValue)null)Overrides org. Implements org. Map using a
generated name.
|
| public Map | asMap()
Implements org. |
| public ExtendedModelMap | mergeAttributes(Map<String, ?> attributes)
Overrides org. Implements org. Map into this Map,
with existing objects of the same name taking precedence (i.e. not getting
replaced).
|
| ExtendedModelMap | back to summary |
|---|---|
| public ExtendedModelMap() | |
| addAllAttributes | back to summary |
|---|---|
| public ExtendedModelMap addAllAttributes(Collection<?> attributeValues) Overrides org. Implements org. Doc from org. Copy all attributes in the supplied
| |
| addAllAttributes | back to summary |
|---|---|
| public ExtendedModelMap addAllAttributes(Map<String, ?> attributes) Overrides org. Implements org. Doc from org. Copy all attributes in the supplied
| |
| addAttribute | back to summary |
|---|---|
| public ExtendedModelMap addAttribute(String attributeName, Object attributeValue) Overrides org. Implements org. Doc from org. Add the supplied attribute under the supplied name. | |
| addAttribute | back to summary |
|---|---|
| public ExtendedModelMap addAttribute(Object attributeValue) Overrides org. Implements org. Doc from org. Add the supplied attribute to this Note Empty | |
| asMap | back to summary |
|---|---|
| public Map Implements org. Doc from org. Return the current set of model attributes as a Map.
| |
| mergeAttributes | back to summary |
|---|---|
| public ExtendedModelMap mergeAttributes(Map<String, ?> attributes) Overrides org. Implements org. Doc from org. Copy all attributes in the supplied
| |