public static final class TemplateProcessor.DotSplittingTemplateModel
extends java.lang.Object
implements freemarker.template.TemplateHashModelEx2
TemplateHashModel
which will correctly handle entries of the form "a.b" in this map,
matching against template requests for "${a.b}".
Freemarker requests "a" in a map when given such a request, and expects that to point to a map with a key "b". This model provides such maps even for "a.b" in a map.
However if "a" and "a.b" are in the map, this will not currently do the deep mapping. (It does not have enough contextual information from Freemarker to handle this case.)
Modifier and Type | Method and Description |
---|---|
boolean |
contains(java.lang.String key) |
freemarker.template.TemplateModel |
get(java.lang.String key) |
boolean |
isEmpty() |
freemarker.template.TemplateCollectionModel |
keys() |
freemarker.template.TemplateHashModelEx2.KeyValuePairIterator |
keyValuePairIterator() |
int |
size() |
java.lang.String |
toString() |
freemarker.template.TemplateCollectionModel |
values() |
public boolean isEmpty()
isEmpty
in interface freemarker.template.TemplateHashModel
public boolean contains(java.lang.String key)
public freemarker.template.TemplateModel get(java.lang.String key)
get
in interface freemarker.template.TemplateHashModel
public java.lang.String toString()
toString
in class java.lang.Object
public int size()
size
in interface freemarker.template.TemplateHashModelEx
public freemarker.template.TemplateCollectionModel keys()
keys
in interface freemarker.template.TemplateHashModelEx
public freemarker.template.TemplateCollectionModel values()
values
in interface freemarker.template.TemplateHashModelEx
public freemarker.template.TemplateHashModelEx2.KeyValuePairIterator keyValuePairIterator()
keyValuePairIterator
in interface freemarker.template.TemplateHashModelEx2