Interface TemplateHashModel
- All Superinterfaces:
TemplateModel
- All Known Subinterfaces:
TemplateHashModelEx, TemplateHashModelEx2
- All Known Implementing Classes:
AllHttpScopesHashModel, ArrayModel, BeanModel, BooleanModel, CollectionModel, DateModel, DefaultMapAdapter, DOMNodeModel, EnumerationModel, Environment.Namespace, HttpRequestHashModel, HttpRequestParametersHashModel, HttpSessionHashModel, IteratorModel, MapModel, NodeListModel, NodeListModel, NodeModel, NumberModel, ResourceBundleModel, ServletContextHashModel, SimpleHash, SimpleMapModel, StringModel, TaglibFactory
"hash" template language data type: an object that contains other objects accessible through string keys
(sub-variable names). It, in itself, doesn't support listing the keys or values (
TemplateHashModelEx does).
In templates they are used like myHash.myKey or myHash[myDynamicKey].
-
Field Summary
Fields inherited from interface TemplateModel
NOTHING -
Method Summary
-
Method Details
-
get
Gets a TemplateModel from the hash.- Parameters:
key- the name by which the TemplateModel is identified in the template.- Returns:
- the TemplateModel referred to by the key, or null if not found.
- Throws:
TemplateModelException
-
isEmpty
- Throws:
TemplateModelException
-