Uses of Interface
freemarker.template.TemplateHashModel
-
Packages that use TemplateHashModel Package Description freemarker.core The seldom used or advanced parts of the fundamental FreeMarker API, compared tofreemarker.template
.freemarker.ext.beans The default object wrapper of FreeMarker uses this to expose Java Beans and POJO-s to templates.freemarker.ext.dom Exposes DOM XML nodes to templates as easily traversable trees; see in the Manual.freemarker.ext.jdom Deprecated, use W3C DOM (freemarker.ext.dom
) instead; Exposes JDOM XML nodes to templates.freemarker.ext.jsp Classes for two-way FreeMarker-JSP integration.freemarker.ext.jython Exposes Jython objects to templates.freemarker.ext.rhino Exposes Rhino (ECMAScript) objects to templates.freemarker.ext.servlet Servlet for legacy "Model 2" frameworks that allows using FreeMarker templates instead of JSP as the MVC View (see in the Manual).freemarker.ext.xml Deprecated, use W3C DOM withfreemarker.ext.dom
instead; Exposes XML from DOM, dom4j or JDOM nodes, uniformly.freemarker.template The fundamental, most commonly used API-s of FreeMarker; start withConfiguration
(see also the Getting Started in the Manual.)freemarker.template.utility Various classes used by core FreeMarker code but might be useful outside of it too. -
-
Uses of TemplateHashModel in freemarker.core
Classes in freemarker.core that implement TemplateHashModel Modifier and Type Class Description class
Environment.Namespace
Methods in freemarker.core that return TemplateHashModel Modifier and Type Method Description TemplateHashModel
Environment. getDataModel()
Returns a view of the data-model (also known as the template context in some other template engines) that falls back to shared variables.TemplateHashModel
Environment. getGlobalVariables()
Returns the read-only hash of globally visible variables.Constructors in freemarker.core with parameters of type TemplateHashModel Constructor Description Environment(Template template, TemplateHashModel rootDataModel, java.io.Writer out)
-
Uses of TemplateHashModel in freemarker.ext.beans
Classes in freemarker.ext.beans that implement TemplateHashModel Modifier and Type Class Description class
ArrayModel
A class that will wrap an arbitrary array intoTemplateCollectionModel
andTemplateSequenceModel
interfaces.class
BeanModel
A class that will wrap an arbitrary object intoTemplateHashModel
interface allowing calls to arbitrary property getters and invocation of accessible methods on the object from a template using the object.foo to access properties and object.bar(arg1, arg2) to invoke methods on it.class
BooleanModel
A class that will wrap instances ofBoolean
into aTemplateBooleanModel
.class
CollectionModel
A special case ofBeanModel
that can wrap Java collections and that implements theTemplateCollectionModel
in order to be usable in a <#list> block.class
DateModel
Wraps arbitrary subclass ofDate
into a reflective model.class
EnumerationModel
A class that addsTemplateModelIterator
functionality to theEnumeration
interface implementers.class
IteratorModel
A class that addsTemplateModelIterator
functionality to theIterator
interface implementers.class
MapModel
A special case ofBeanModel
that adds implementation forTemplateMethodModelEx
on map objects that is a shortcut for the Map.get() method.class
NumberModel
Wraps arbitrary subclass ofNumber
into a reflective model.class
ResourceBundleModel
A hash model that wraps a resource bundle.class
SimpleMapModel
Model used byBeansWrapper
when simpleMapWrapper mode is enabled.class
StringModel
Subclass ofBeanModel
that exposes the return value of theObject.toString()
method through theTemplateScalarModel
interface.Methods in freemarker.ext.beans that return TemplateHashModel Modifier and Type Method Description TemplateHashModel
BeansWrapper. getEnumModels()
Returns a hash model that represents the so-called class enum models.TemplateHashModel
BeansWrapper. getStaticModels()
Returns a hash model that represents the so-called class static models.TemplateHashModel
BeansWrapper. wrapAsAPI(java.lang.Object obj)
-
Uses of TemplateHashModel in freemarker.ext.dom
Classes in freemarker.ext.dom that implement TemplateHashModel Modifier and Type Class Description class
NodeModel
A base class for wrapping a single W3C DOM Node as a FreeMarker template model. -
Uses of TemplateHashModel in freemarker.ext.jdom
Classes in freemarker.ext.jdom that implement TemplateHashModel Modifier and Type Class Description class
NodeListModel
Deprecated.UseNodeModel
instead. -
Uses of TemplateHashModel in freemarker.ext.jsp
Classes in freemarker.ext.jsp that implement TemplateHashModel Modifier and Type Class Description class
TaglibFactory
A hash model associated with a servlet context that can load JSP tag libraries associated with that servlet context. -
Uses of TemplateHashModel in freemarker.ext.jython
Classes in freemarker.ext.jython that implement TemplateHashModel Modifier and Type Class Description class
JythonHashModel
Model for Jython dictionaries (PyDictionary
andPyStringMap
).class
JythonModel
Generic model for arbitrary Jython objects.class
JythonNumberModel
Model for Jython numeric objects (PyInteger
,PyLong
,PyFloat
).class
JythonSequenceModel
Model for Jython sequence objects (PySequence
descendants). -
Uses of TemplateHashModel in freemarker.ext.rhino
Classes in freemarker.ext.rhino that implement TemplateHashModel Modifier and Type Class Description class
RhinoFunctionModel
class
RhinoScriptableModel
-
Uses of TemplateHashModel in freemarker.ext.servlet
Classes in freemarker.ext.servlet that implement TemplateHashModel Modifier and Type Class Description class
AllHttpScopesHashModel
An extension of SimpleHash that looks up keys in the hash, then in the request, session, and servlet context scopes.class
HttpRequestHashModel
TemplateHashModel wrapper for a HttpServletRequest attributes.class
HttpRequestParametersHashModel
TemplateHashModel wrapper for a HttpServletRequest parameters.class
HttpSessionHashModel
TemplateHashModel wrapper for a HttpSession attributes.class
ServletContextHashModel
TemplateHashModel wrapper for a ServletContext attributes. -
Uses of TemplateHashModel in freemarker.ext.xml
Classes in freemarker.ext.xml that implement TemplateHashModel Modifier and Type Class Description class
NodeListModel
Deprecated.UseNodeModel
instead. -
Uses of TemplateHashModel in freemarker.template
Subinterfaces of TemplateHashModel in freemarker.template Modifier and Type Interface Description interface
TemplateHashModelEx
"extended hash" template language data type; extendsTemplateHashModel
by allowing iterating through its keys and values.interface
TemplateHashModelEx2
Adds key-value pair listing capability toTemplateHashModelEx
.Classes in freemarker.template that implement TemplateHashModel Modifier and Type Class Description class
DefaultMapAdapter
Adapts aMap
to the correspondingTemplateModel
interface(s), most importantly toTemplateHashModelEx
.class
SimpleHash
A simple implementation of theTemplateHashModelEx
interface, using its own underlyingMap
orSortedMap
for storing the hash entries.Methods in freemarker.template that return TemplateHashModel Modifier and Type Method Description TemplateHashModel
SimpleObjectWrapper. wrapAsAPI(java.lang.Object obj)
-
Uses of TemplateHashModel in freemarker.template.utility
Classes in freemarker.template.utility that implement TemplateHashModel Modifier and Type Class Description class
DOMNodeModel
Deprecated.UseNodeModel
insteadMethods in freemarker.template.utility that return TemplateHashModel Modifier and Type Method Description TemplateHashModel
ObjectWrapperWithAPISupport. wrapAsAPI(java.lang.Object obj)
Wraps an object to aTemplateModel
that exposes the object's "native" (usually, Java) API.static TemplateHashModel
TemplateModelUtils. wrapAsHashUnion(ObjectWrapper objectWrapper, java.lang.Object... hashLikeObjects)
Same asTemplateModelUtils.wrapAsHashUnion(ObjectWrapper, List)
, but uses a varargs parameter instead of aList
.static TemplateHashModel
TemplateModelUtils. wrapAsHashUnion(ObjectWrapper objectWrapper, java.util.List<?> hashLikeObjects)
Creates aTemplateHashModel
that is the union of the hash-like objects passed in as argument.
-