freemarker.template
Interface TemplateHashModel
- All Superinterfaces:
- TemplateModel
- All Known Subinterfaces:
- TemplateHashModelEx
- All Known Implementing Classes:
- BeanModel, DOMNodeModel, HttpRequestHashModel, HttpRequestParametersHashModel, HttpSessionHashModel, JythonHashModel, JythonModel, NodeListModel, NodeListModel, NodeModel, ServletContextHashModel, SimpleHash, SimpleMapModel, TaglibFactory
- public interface TemplateHashModel
- extends TemplateModel
Hashes in a data model must implement this interface. Hashes
are FreeMarker data objects that contain other objects through key-value
mappings.
- Version:
- $Id: TemplateHashModel.java,v 1.11 2003/01/12 23:40:21 revusky Exp $
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.
- Throws:
TemplateModelException
isEmpty
public boolean isEmpty()
throws TemplateModelException
- Throws:
TemplateModelException