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. Copy all attributes in the supplied |
| public ExtendedModelMap | addAllAttributes(Map<String, ?> attributes)
Overrides org. Implements org. Copy all attributes in the supplied |
| 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. Add the supplied attribute under the supplied name. |
| public ExtendedModelMap | addAttribute(Object
the model attribute value (never attributeValue)null)Overrides org. Implements org. Add the supplied attribute to this |
| public Map | asMap()
Implements org. Return the current set of model attributes as a Map. |
| public ExtendedModelMap | mergeAttributes(Map<String, ?> attributes)
Overrides org. Implements org. Copy all attributes in the supplied |
| 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
| |