| java.lang.Object freemarker.template.WrappingTemplateModel freemarker.template.SimpleHash
All known Subclasses: freemarker.ext.servlet.AllHttpScopesHashModel,
isEmpty | public boolean isEmpty()(Code) | | |
put | public void put(String key, Object obj)(Code) | | Adds a key-value entry to the map.
Parameters: key - the name by which the object isidentified in the template. Parameters: obj - the object to store. |
put | public void put(String key, boolean b)(Code) | | Puts a boolean in the map
Parameters: key - the name by which the resulting TemplateModelis identified in the template. Parameters: b - the boolean to store. |
putAll | public void putAll(Map m)(Code) | | Adds all the key/value entries in the map
Parameters: m - the map with the entries to add, the keys are assumed to be strings. |
remove | public void remove(String key)(Code) | | Removes the given key from the underlying map.
Parameters: key - the key to be removed |
toMap | public Map toMap() throws TemplateModelException(Code) | | Note that this method creates and returns a deep-copy of the underlying hash used
internally. This could be a gotcha for some people
at some point who want to alter something in the data model,
but we should maintain our immutability semantics (at least using default SimpleXXX wrappers)
for the data model. It will recursively unwrap the stuff in the underlying container.
|
toString | public String toString()(Code) | | Convenience method for returning the String value of the
underlying map.
|
|
|