public static final class TemplateProcessor.DotSplittingTemplateModel
extends java.lang.Object
implements freemarker.template.TemplateHashModel
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() |
java.lang.String |
toString() |
public boolean isEmpty()
isEmpty in interface freemarker.template.TemplateHashModelpublic boolean contains(java.lang.String key)
public freemarker.template.TemplateModel get(java.lang.String key)
throws freemarker.template.TemplateModelException
get in interface freemarker.template.TemplateHashModelfreemarker.template.TemplateModelExceptionpublic java.lang.String toString()
toString in class java.lang.Object