org.springframework.ui
Class ExtendedModelMap
java.lang.Object
   java.util.AbstractMap<K,V>
java.util.AbstractMap<K,V>
       java.util.HashMap<K,V>
java.util.HashMap<K,V>
           java.util.LinkedHashMap<String,Object>
java.util.LinkedHashMap<String,Object>
               org.springframework.ui.ModelMap
org.springframework.ui.ModelMap
                   org.springframework.ui.ExtendedModelMap
org.springframework.ui.ExtendedModelMap
- All Implemented Interfaces: 
- Serializable, Cloneable, Map<String,Object>, Model
- Direct Known Subclasses: 
- BindingAwareModelMap
- public class ExtendedModelMap 
- extends ModelMap- implements Model
Subclass of ModelMap that implements the Model interface.
 Java 5 specific like the Model interface itself.
- Since:
- 2.5.1
- Author:
- Juergen Hoeller
- See Also:
- Serialized Form
 
 
 
 
 
 
 
 
 
 
| Methods inherited from interface java.util.Map | 
| containsKey, entrySet, equals, hashCode, isEmpty, keySet, put, putAll, remove, size, values | 
 
ExtendedModelMap
public ExtendedModelMap()
addAttribute
public ExtendedModelMap addAttribute(String attributeName,
                                     Object attributeValue)
- Description copied from class: ModelMap
- Add the supplied attribute under the supplied name.
 
- 
- Specified by:
- addAttributein interface- Model
- Overrides:
- addAttributein class- ModelMap
 
- 
- Parameters:
- attributeName- the name of the model attribute (never- null)
- attributeValue- the model attribute value (can be- null)
 
addAttribute
public ExtendedModelMap addAttribute(Object attributeValue)
- Description copied from class: ModelMap
- Add the supplied attribute to this Mapusing agenerated name.Note: Empty Collectionsare not added to
 the model when using this method because we cannot correctly determine
 the true convention name. View code should check fornullrather
 than for empty collections as is already done by JSTL tags.
 
 
- 
- Specified by:
- addAttributein interface- Model
- Overrides:
- addAttributein class- ModelMap
 
- 
- Parameters:
- attributeValue- the model attribute value (never- null)
 
addAllAttributes
public ExtendedModelMap addAllAttributes(Collection<?> attributeValues)
- Description copied from class: ModelMap
- Copy all attributes in the supplied Collectioninto thisMap, using attribute name generation for each element.
 
- 
- Specified by:
- addAllAttributesin interface- Model
- Overrides:
- addAllAttributesin class- ModelMap
 
- 
- See Also:
- ModelMap.addAttribute(Object)
 
addAllAttributes
public ExtendedModelMap addAllAttributes(Map<String,?> attributes)
- Description copied from class: ModelMap
- Copy all attributes in the supplied Mapinto thisMap.
 
- 
- Specified by:
- addAllAttributesin interface- Model
- Overrides:
- addAllAttributesin class- ModelMap
 
- 
- See Also:
- ModelMap.addAttribute(String, Object)
 
mergeAttributes
public ExtendedModelMap mergeAttributes(Map<String,?> attributes)
- Description copied from class: ModelMap
- Copy all attributes in the supplied Mapinto thisMap,
 with existing objects of the same name taking precedence (i.e. not getting
 replaced).
 
- 
- Specified by:
- mergeAttributesin interface- Model
- Overrides:
- mergeAttributesin class- ModelMap
 
- 
 
asMap
public Map<String,Object> asMap()
- Description copied from interface: Model
- Return the current set of model attributes as a Map.
 
- 
- Specified by:
- asMapin interface- Model
 
-