freemarker.template
Interface TemplateHashModel

All Superinterfaces:
TemplateModel
All Known Subinterfaces:
TemplateModelRoot
All Known Implementing Classes:
ArrayModel, ContentEntry, ExtendedIterator, ExtendedList, HttpRequestHashModel, HttpRequestParametersHashModel, HttpSessionHashModel, JspContextModel, NodeListModel, ObjectModel, ResourceBundleModel, ServletContextHashModel, StaticModel, StaticModels, TabItem, SortedHash, TransformHashWrapper, MultiModel1, BooleanHash1, BooleanHash2, ListModel2, MultiModel3, MultiModel4, MultiModel5

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.5 2003/11/03 03:33:32 run2000 Exp $

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.