Package freemarker.template
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
,JythonHashModel
,JythonModel
,JythonNumberModel
,JythonSequenceModel
,MapModel
,NodeListModel
,NodeListModel
,NodeModel
,NumberModel
,ResourceBundleModel
,RhinoFunctionModel
,RhinoScriptableModel
,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 freemarker.template.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
-