freemarker.template
Interface TemplateModelRoot

All Superinterfaces:
TemplateHashModel, TemplateModel
All Known Implementing Classes:
SimpleHash, RootMapModel

public interface TemplateModelRoot
extends TemplateHashModel

The root node of a template data model must implement this interface.

Version:
$Id: TemplateModelRoot.java,v 1.6 2002/04/10 14:29:53 revusky Exp $

Method Summary
 java.util.Locale getLocale()
          gets the locale to be used for number/date formatting (A hook for later user currently -- revusky)
 void put(java.lang.String key, TemplateModel model)
          Sets a value in the hash model.
 void remove(java.lang.String key)
          Removes a key from the hash model.
 void setLocale(java.util.Locale l)
          sets the locale to be used for number/date formatting (A hook for later user currently -- revusky)
 
Methods inherited from interface freemarker.template.TemplateHashModel
get
 
Methods inherited from interface freemarker.template.TemplateModel
isEmpty
 

Method Detail

put

public void put(java.lang.String key,
                TemplateModel model)
Sets a value in the hash model.
Parameters:
key - the hash key.
model - the hash value.

remove

public void remove(java.lang.String key)
Removes a key from the hash model.
Parameters:
key - the key to be removed.

setLocale

public void setLocale(java.util.Locale l)
sets the locale to be used for number/date formatting (A hook for later user currently -- revusky)

getLocale

public java.util.Locale getLocale()
gets the locale to be used for number/date formatting (A hook for later user currently -- revusky)