Example usage for Java org.springframework.ui Model fields, constructors, methods, implement or subclass
The text is from its open source code.
Model | addAllAttributes(Collection> attributeValues) Copy all attributes in the supplied Collection into this Map , using attribute name generation for each element. |
Model | addAllAttributes(Map Copy all attributes in the supplied Map into this Map . |
Model | addAttribute(String attributeName, @Nullable Object attributeValue) Add the supplied attribute under the supplied name. |
Model | addAttribute(Object attributeValue) Add the supplied attribute to this Map using a org.springframework.core.Conventions#getVariableName generated name . |
Map | asMap() Return the current set of model attributes as a Map. |
boolean | containsAttribute(String attributeName) Does this model contain an attribute of the given name? |
int | hashCode() Returns a hash code value for the object. |
Model | mergeAttributes(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. |