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 aTemplateModelfrom the hash.- Parameters:
key- The name by which theTemplateModelis identified in the template.- Returns:
- The
TemplateModelreferred to by the key, ornullif not found. - Throws:
TemplateModelException
-
isEmpty
- Throws:
TemplateModelException
-