freemarker.template
Interface TemplateWriteableHashModel
- All Superinterfaces:
- TemplateHashModel, TemplateModel
- All Known Subinterfaces:
- TemplateModelRoot
- All Known Implementing Classes:
- FastHash, LocalModelWrapper, RootModelWrapper, SimpleHash
public interface TemplateWriteableHashModel
- extends TemplateHashModel
Writeable hashes in a template data model must implement this interface. In
addition, the root node of a template data model must implement this
interface.
The detail messages of any TemplateModelExceptions thrown will
be included as HTML comments in the output.
- Since:
- 1.9
- See Also:
TemplateHashModel,
TemplateModelRoot
|
Method Summary |
void |
put(java.lang.String key,
TemplateModel model)
Sets a value in the hash model. |
put
void put(java.lang.String key,
TemplateModel model)
throws TemplateModelException
- Sets a value in the hash model.
- Parameters:
key - the name by which the TemplateModel is identified in the
templatemodel - the value to be set with the given key for this hash model
- Throws:
TemplateModelException - there was a problem setting the value for the given key