freemarker.template
Interface TemplateHashModel

All Superinterfaces:
TemplateModel
All Known Subinterfaces:
TemplateHashModelEx
All Known Implementing Classes:
AllHttpScopesHashModel, ArrayModel, BeanModel, BooleanModel, CollectionModel, DateModel, DOMNodeModel, EnumerationModel, Environment.Namespace, HttpRequestHashModel, HttpRequestParametersHashModel, HttpSessionHashModel, IteratorModel, JythonHashModel, JythonModel, JythonNumberModel, JythonSequenceModel, MapModel, NodeListModel, NodeListModel, NodeModel, NumberModel, ResourceBundleModel, RhinoFunctionModel, RhinoScriptableModel, ServletContextHashModel, SimpleHash, SimpleMapModel, StringModel, 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.13 2005/06/08 02:13:34 revusky Exp $

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

Method Detail

get

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

boolean isEmpty()
                throws TemplateModelException
Throws:
TemplateModelException