freemarker.template
Interface TemplateModelRoot
- All Superinterfaces:
- TemplateHashModel, TemplateModel
- All Known Implementing Classes:
- SimpleHash
- public interface TemplateModelRoot
- extends TemplateHashModel
The root node of a template data model must implement this interface.
|
Method Summary |
void |
put(java.lang.String key,
TemplateModel model)
Sets a value in the hash model. |
void |
remove(java.lang.String key)
Removes a key from the hash model. |
put
public void put(java.lang.String key,
TemplateModel model)
- Sets a value in the hash model.
- Parameters:
key - the hash key.model - the hash value.
remove
public void remove(java.lang.String key)
- Removes a key from the hash model.
- Parameters:
key - the key to be removed.