freemarker.template
Interface TemplateModelRoot

All Superinterfaces:
TemplateHashModel, TemplateModel, TemplateWriteableHashModel
All Known Implementing Classes:
ExtendedHash, FastHash, RootMapModel, RootModelWrapper, SimpleHash

public interface TemplateModelRoot
extends TemplateWriteableHashModel

The root node of a template data model may implement this interface. This interface is now just a marker interface. All functionality has either been moved to TemplateWriteableHashModel or made redundant by changes to the engine.

Version:
$Id: TemplateModelRoot.java 1101 2013-04-01 04:17:32Z run2000 $
See Also:
TemplateWriteableHashModel

Method Summary
 void put(java.lang.String key, TemplateModel model)
          Sets a value in the hash model.
 void remove(java.lang.String key)
          Deprecated. this method is no longer required by the template engine, and will be removed in a future release
 
Methods inherited from interface freemarker.template.TemplateHashModel
get
 
Methods inherited from interface freemarker.template.TemplateModel
isEmpty
 

Method Detail

put

void put(java.lang.String key,
         TemplateModel model)
Sets a value in the hash model.

Specified by:
put in interface TemplateWriteableHashModel
Parameters:
key - the hash key.
model - the hash value to be added.

remove

void remove(java.lang.String key)
Deprecated. this method is no longer required by the template engine, and will be removed in a future release

Removes a key from the hash model.

Parameters:
key - the key to be removed.