Package freemarker.template
Interface TemplateHashModel
- All Superinterfaces:
TemplateModel
- All Known Subinterfaces:
MethodCallAwareTemplateHashModel
,TemplateHashModelEx
,TemplateHashModelEx2
- All Known Implementing Classes:
AllHttpScopesHashModel
,AllHttpScopesHashModel
,ArrayModel
,BeanModel
,BooleanModel
,CollectionModel
,DateModel
,DefaultMapAdapter
,DOMNodeModel
,EnumerationModel
,Environment.Namespace
,GenericObjectModel
,HttpRequestHashModel
,HttpRequestHashModel
,HttpRequestParametersHashModel
,HttpRequestParametersHashModel
,HttpSessionHashModel
,HttpSessionHashModel
,IteratorModel
,JythonHashModel
,JythonModel
,JythonNumberModel
,JythonSequenceModel
,MapModel
,NodeListModel
,NodeListModel
,NodeModel
,NumberModel
,ResourceBundleModel
,RhinoFunctionModel
,RhinoScriptableModel
,ServletContextHashModel
,ServletContextHashModel
,SimpleHash
,SimpleMapModel
,StringModel
,TaglibFactory
,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 aTemplateModel
from the hash.- Parameters:
key
- The name by which theTemplateModel
is identified in the template.- Returns:
- The
TemplateModel
referred to by the key, ornull
if not found. - Throws:
TemplateModelException
-
isEmpty
- Throws:
TemplateModelException
-