public class JsonObjectAdapter
extends freemarker.template.WrappingTemplateModel
implements freemarker.template.TemplateHashModelEx, freemarker.template.AdapterTemplateModel
| Constructor and Description |
|---|
JsonObjectAdapter(JsonObject jsonObject,
freemarker.template.ObjectWrapper ow) |
| Modifier and Type | Method and Description |
|---|---|
freemarker.template.TemplateModel |
get(String key) |
Object |
getAdaptedObject(Class hint) |
boolean |
isEmpty() |
freemarker.template.TemplateCollectionModel |
keys() |
int |
size() |
freemarker.template.TemplateCollectionModel |
values() |
public JsonObjectAdapter(JsonObject jsonObject, freemarker.template.ObjectWrapper ow)
public freemarker.template.TemplateModel get(String key) throws freemarker.template.TemplateModelException
get in interface freemarker.template.TemplateHashModelfreemarker.template.TemplateModelExceptionpublic boolean isEmpty()
throws freemarker.template.TemplateModelException
isEmpty in interface freemarker.template.TemplateHashModelfreemarker.template.TemplateModelExceptionpublic int size()
throws freemarker.template.TemplateModelException
size in interface freemarker.template.TemplateHashModelExfreemarker.template.TemplateModelExceptionpublic freemarker.template.TemplateCollectionModel keys()
throws freemarker.template.TemplateModelException
keys in interface freemarker.template.TemplateHashModelExfreemarker.template.TemplateModelExceptionpublic freemarker.template.TemplateCollectionModel values()
throws freemarker.template.TemplateModelException
values in interface freemarker.template.TemplateHashModelExfreemarker.template.TemplateModelExceptionCopyright © 2020. All rights reserved.