public class WritableHash
extends java.lang.Object
implements freemarker.template.TemplateHashModelEx
Constructor and Description |
---|
WritableHash() |
WritableHash(java.util.Map map) |
Modifier and Type | Method and Description |
---|---|
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() |
public WritableHash()
public WritableHash(java.util.Map map)
map
- must use String
for keys and TemplateModel
-s
for values.public int size() throws freemarker.template.TemplateModelException
size
in interface freemarker.template.TemplateHashModelEx
freemarker.template.TemplateModelException
public freemarker.template.TemplateCollectionModel keys() throws freemarker.template.TemplateModelException
keys
in interface freemarker.template.TemplateHashModelEx
freemarker.template.TemplateModelException
public freemarker.template.TemplateCollectionModel values() throws freemarker.template.TemplateModelException
values
in interface freemarker.template.TemplateHashModelEx
freemarker.template.TemplateModelException
public freemarker.template.TemplateModel get(java.lang.String key) throws freemarker.template.TemplateModelException
get
in interface freemarker.template.TemplateHashModel
freemarker.template.TemplateModelException
public boolean isEmpty() throws freemarker.template.TemplateModelException
isEmpty
in interface freemarker.template.TemplateHashModel
freemarker.template.TemplateModelException
public java.util.Map getMap()
public void setMap(java.util.Map map)
public java.lang.Object clone()