Example usage for Java org.springframework.ui ModelMap fields, constructors, methods, implement or subclass
The text is from its open source code.
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. |
ModelMap | addAllAttributes(@Nullable Collection> attributeValues) Copy all attributes in the supplied Collection into this Map , using attribute name generation for each element. |
ModelMap | addAllAttributes(@Nullable Map Copy all attributes in the supplied Map into this Map . |
ModelMap | addAttribute(String attributeName, @Nullable Object attributeValue) Add the supplied attribute under the supplied name. |
ModelMap | addAttribute(Object attributeValue) Add the supplied attribute to this Map using a org.springframework.core.Conventions#getVariableName generated name . |
boolean | containsAttribute(String attributeName) Does this model contain an attribute of the given name? |
ModelMap | mergeAttributes(@Nullable Map Copy all attributes in the supplied Map into this Map , with existing objects of the same name taking precedence (i.e. |
String | toString() Returns a string representation of the object. |