freemarker.template
Interface TemplateHashModel
- All Superinterfaces:
- TemplateModel
- All Known Subinterfaces:
- TemplateHashModelEx, TemplateModelRoot
- All Known Implementing Classes:
- BeanModel, StaticModels, StaticModel, HttpSessionHashModel, HttpRequestHashModel, ServletContextHashModel, HttpRequestParametersHashModel, NodeListModel, JspContextModel
- public 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.
- Version:
- $Id: TemplateHashModel.java,v 1.4 2002/03/09 20:57:04 revusky Exp $
Method Summary |
TemplateModel |
get(java.lang.String key)
Gets a TemplateModel from the hash. |
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.