Java org.springframework.ui ModelMap fields, constructors, methods, implement or subclass

Example usage for Java org.springframework.ui ModelMap fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.springframework.ui ModelMap.

The text is from its open source code.

Constructor

ModelMap()
Construct a new, empty ModelMap .
ModelMap(String attributeName, @Nullable Object attributeValue)
Construct a new ModelMap containing the supplied attribute under the supplied name.
ModelMap(Object attributeValue)
Construct a new ModelMap containing the supplied attribute.

Method

ModelMapaddAllAttributes(@Nullable Collection attributeValues)
Copy all attributes in the supplied Collection into this Map , using attribute name generation for each element.
ModelMapaddAllAttributes(@Nullable Map attributes)
Copy all attributes in the supplied Map into this Map .
ModelMapaddAttribute(String attributeName, @Nullable Object attributeValue)
Add the supplied attribute under the supplied name.
ModelMapaddAttribute(Object attributeValue)
Add the supplied attribute to this Map using a org.springframework.core.Conventions#getVariableName generated name .
booleancontainsAttribute(String attributeName)
Does this model contain an attribute of the given name?
ModelMapmergeAttributes(@Nullable Map attributes)
Copy all attributes in the supplied Map into this Map , with existing objects of the same name taking precedence (i.e.
StringtoString()
Returns a string representation of the object.