fmpp.models
Class WritableHash
java.lang.Object
fmpp.models.WritableHash
- All Implemented Interfaces:
- freemarker.template.TemplateHashModel, freemarker.template.TemplateHashModelEx, freemarker.template.TemplateModel, java.lang.Cloneable
public class WritableHash
- extends java.lang.Object
- implements freemarker.template.TemplateHashModelEx
Hash variable that can be changed during template execution with the proper
method variables.
Fields inherited from interface freemarker.template.TemplateModel |
NOTHING |
Method Summary |
java.lang.Object |
clone()
|
freemarker.template.TemplateModel |
get(java.lang.String key)
|
java.util.Map |
getMap()
|
boolean |
isEmpty()
|
freemarker.template.TemplateCollectionModel |
keys()
|
void |
setMap(java.util.Map map)
|
int |
size()
|
freemarker.template.TemplateCollectionModel |
values()
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WritableHash
public WritableHash()
WritableHash
public WritableHash(java.util.Map map)
- Parameters:
map
- must use String
for keys and TemplateModel
-s
for values.
size
public int size()
throws freemarker.template.TemplateModelException
- Specified by:
size
in interface freemarker.template.TemplateHashModelEx
- Throws:
freemarker.template.TemplateModelException
keys
public freemarker.template.TemplateCollectionModel keys()
throws freemarker.template.TemplateModelException
- Specified by:
keys
in interface freemarker.template.TemplateHashModelEx
- Throws:
freemarker.template.TemplateModelException
values
public freemarker.template.TemplateCollectionModel values()
throws freemarker.template.TemplateModelException
- Specified by:
values
in interface freemarker.template.TemplateHashModelEx
- Throws:
freemarker.template.TemplateModelException
get
public freemarker.template.TemplateModel get(java.lang.String key)
throws freemarker.template.TemplateModelException
- Specified by:
get
in interface freemarker.template.TemplateHashModel
- Throws:
freemarker.template.TemplateModelException
isEmpty
public boolean isEmpty()
throws freemarker.template.TemplateModelException
- Specified by:
isEmpty
in interface freemarker.template.TemplateHashModel
- Throws:
freemarker.template.TemplateModelException
getMap
public java.util.Map getMap()
setMap
public void setMap(java.util.Map map)
clone
public java.lang.Object clone()