Package fmpp.models
Class WritableHash
java.lang.Object
fmpp.models.WritableHash
- All Implemented Interfaces:
freemarker.template.TemplateHashModel,freemarker.template.TemplateHashModelEx,freemarker.template.TemplateModel,Cloneable
Hash variable that can be changed during template execution with the proper
method variables.
-
Field Summary
Fields inherited from interface freemarker.template.TemplateModel
NOTHING -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
WritableHash
public WritableHash() -
WritableHash
- Parameters:
map- must useStringfor keys andTemplateModel-s for values.
-
-
Method Details
-
size
public int size() throws freemarker.template.TemplateModelException- Specified by:
sizein interfacefreemarker.template.TemplateHashModelEx- Throws:
freemarker.template.TemplateModelException
-
keys
public freemarker.template.TemplateCollectionModel keys() throws freemarker.template.TemplateModelException- Specified by:
keysin interfacefreemarker.template.TemplateHashModelEx- Throws:
freemarker.template.TemplateModelException
-
values
public freemarker.template.TemplateCollectionModel values() throws freemarker.template.TemplateModelException- Specified by:
valuesin interfacefreemarker.template.TemplateHashModelEx- Throws:
freemarker.template.TemplateModelException
-
get
public freemarker.template.TemplateModel get(String key) throws freemarker.template.TemplateModelException - Specified by:
getin interfacefreemarker.template.TemplateHashModel- Throws:
freemarker.template.TemplateModelException
-
isEmpty
public boolean isEmpty() throws freemarker.template.TemplateModelException- Specified by:
isEmptyin interfacefreemarker.template.TemplateHashModel- Throws:
freemarker.template.TemplateModelException
-
getMap
-
setMap
-
clone
-