net.sf.jelly.apt.freemarker
Class FreemarkerModel

java.lang.Object
  extended by freemarker.template.WrappingTemplateModel
      extended by freemarker.template.SimpleHash
          extended by net.sf.jelly.apt.freemarker.FreemarkerModel
All Implemented Interfaces:
freemarker.template.TemplateHashModel, freemarker.template.TemplateHashModelEx, freemarker.template.TemplateModel, java.io.Serializable

public class FreemarkerModel
extends freemarker.template.SimpleHash
implements TemplateModel

The freemarker data model.

Author:
Ryan Heaton
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface freemarker.template.TemplateModel
NOTHING
 
Constructor Summary
FreemarkerModel()
           
 
Method Summary
static FreemarkerModel get()
          Get the current model in the thread.
 java.lang.Object getVariable(java.lang.String var)
           
static void set(FreemarkerModel model)
          Set the current model.
 void setVariable(java.lang.String var, java.lang.Object data)
           
 
Methods inherited from class freemarker.template.SimpleHash
copyMap, get, isEmpty, keys, put, put, putAll, remove, size, synchronizedWrapper, toMap, toString, values
 
Methods inherited from class freemarker.template.WrappingTemplateModel
getDefaultObjectWrapper, getObjectWrapper, setDefaultObjectWrapper, setObjectWrapper, wrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FreemarkerModel

public FreemarkerModel()
Method Detail

set

public static void set(FreemarkerModel model)
Set the current model.

Parameters:
model - The model to set.

get

public static FreemarkerModel get()
Get the current model in the thread.

Returns:
the current model in the thread.

getVariable

public java.lang.Object getVariable(java.lang.String var)

setVariable

public void setVariable(java.lang.String var,
                        java.lang.Object data)