TemplateHashModel, TemplateModelAllHttpScopesHashModel, ArrayModel, BeanModel, BooleanModel, CollectionModel, DateModel, DefaultMapAdapter, EnumerationModel, Environment.Namespace, HttpRequestHashModel, HttpRequestParametersHashModel, IteratorModel, JythonHashModel, MapModel, NumberModel, ResourceBundleModel, RhinoFunctionModel, RhinoScriptableModel, SimpleHash, SimpleMapModel, StringModelpublic interface TemplateHashModelEx extends TemplateHashModel
TemplateHashModel by allowing
iterating through its keys and values.
In templates they are used like hashes, but these will also work (among others):
myExtHash?size, myExtHash?keys, myExtHash?values.
SimpleHashNOTHING| Modifier and Type | Method | Description |
|---|---|---|
TemplateCollectionModel |
keys() |
|
int |
size() |
|
TemplateCollectionModel |
values() |
get, isEmptyint size() throws TemplateModelException
TemplateModelExceptionTemplateCollectionModel keys() throws TemplateModelException
TemplateScalarModel
(as the keys of hashes are always strings).TemplateModelExceptionTemplateCollectionModel values() throws TemplateModelException
TemplateModel-s.TemplateModelException