public class ValueCompositeTemplateModel extends Object implements freemarker.template.TemplateHashModelEx, freemarker.template.TemplateScalarModel
Constructor and Description |
---|
ValueCompositeTemplateModel(ValueComposite composite,
freemarker.template.ObjectWrapper wrapper) |
Modifier and Type | Method and Description |
---|---|
freemarker.template.TemplateModel |
get(String key) |
String |
getAsString() |
boolean |
isEmpty() |
freemarker.template.TemplateCollectionModel |
keys() |
int |
size() |
freemarker.template.TemplateCollectionModel |
values() |
public ValueCompositeTemplateModel(ValueComposite composite, freemarker.template.ObjectWrapper wrapper)
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(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 String getAsString() throws freemarker.template.TemplateModelException
getAsString
in interface freemarker.template.TemplateScalarModel
freemarker.template.TemplateModelException