freemarker.template
Interface TemplateHashModel

All Known Subinterfaces:
TemplateModelRoot

public abstract interface TemplateHashModel
extends TemplateModel

Hashes in a template data model must implement this interface.

The detail messages of any TemplateModelExceptions thrown will be included as HTML comments in the output.


Method Summary
 TemplateModel get(java.lang.String key)
          Gets a TemplateModel from the hash.
 
Methods inherited from interface freemarker.template.TemplateModel
isEmpty
 

Method Detail

get

public TemplateModel get(java.lang.String key)
                  throws TemplateModelException
Gets a TemplateModel from the hash.
Parameters:
key - the name by which the TemplateModel is identified in the template.
Returns:
the TemplateModel referred to by the key, or null if not found.