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.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.dominstead; 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 classEnvironment.NamespaceMethods in freemarker.core that return TemplateHashModel Modifier and Type Method Description TemplateHashModelEnvironment. 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.TemplateHashModelEnvironment. 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 classArrayModelA class that will wrap an arbitrary array intoTemplateCollectionModelandTemplateSequenceModelinterfaces.classBeanModelA class that will wrap an arbitrary object intoTemplateHashModelinterface 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.classBooleanModelA class that will wrap instances ofBooleaninto aTemplateBooleanModel.classCollectionModelA special case ofBeanModelthat can wrap Java collections and that implements theTemplateCollectionModelin order to be usable in a <#list> block.classDateModelWraps arbitrary subclass ofDateinto a reflective model.classEnumerationModelA class that addsTemplateModelIteratorfunctionality to theEnumerationinterface implementers.classIteratorModelA class that addsTemplateModelIteratorfunctionality to theIteratorinterface implementers.classMapModelA special case ofBeanModelthat adds implementation forTemplateMethodModelExon map objects that is a shortcut for the Map.get() method.classNumberModelWraps arbitrary subclass ofNumberinto a reflective model.classResourceBundleModelA hash model that wraps a resource bundle.classSimpleMapModelModel used byBeansWrapperwhen simpleMapWrapper mode is enabled.classStringModelSubclass ofBeanModelthat exposes the return value of theObject.toString()method through theTemplateScalarModelinterface.Methods in freemarker.ext.beans that return TemplateHashModel Modifier and Type Method Description TemplateHashModelBeansWrapper. getEnumModels()Returns a hash model that represents the so-called class enum models.TemplateHashModelBeansWrapper. getStaticModels()Returns a hash model that represents the so-called class static models.TemplateHashModelBeansWrapper. 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 classNodeModelA 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 classNodeListModelDeprecated.UseNodeModelinstead. -
Uses of TemplateHashModel in freemarker.ext.jsp
Classes in freemarker.ext.jsp that implement TemplateHashModel Modifier and Type Class Description classTaglibFactoryA hash model associated with a servlet context that can load JSP tag libraries associated with that servlet context. -
Uses of TemplateHashModel in freemarker.ext.servlet
Classes in freemarker.ext.servlet that implement TemplateHashModel Modifier and Type Class Description classAllHttpScopesHashModelAn extension of SimpleHash that looks up keys in the hash, then in the request, session, and servlet context scopes.classHttpRequestHashModelTemplateHashModel wrapper for a HttpServletRequest attributes.classHttpRequestParametersHashModelTemplateHashModel wrapper for a HttpServletRequest parameters.classHttpSessionHashModelTemplateHashModel wrapper for a HttpSession attributes.classServletContextHashModelTemplateHashModel 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 classNodeListModelDeprecated.UseNodeModelinstead. -
Uses of TemplateHashModel in freemarker.template
Subinterfaces of TemplateHashModel in freemarker.template Modifier and Type Interface Description interfaceTemplateHashModelEx"extended hash" template language data type; extendsTemplateHashModelby allowing iterating through its keys and values.interfaceTemplateHashModelEx2Adds key-value pair listing capability toTemplateHashModelEx.Classes in freemarker.template that implement TemplateHashModel Modifier and Type Class Description classDefaultMapAdapterAdapts aMapto the correspondingTemplateModelinterface(s), most importantly toTemplateHashModelEx.classSimpleHashA simple implementation of theTemplateHashModelExinterface, using its own underlyingMaporSortedMapfor storing the hash entries.Methods in freemarker.template that return TemplateHashModel Modifier and Type Method Description TemplateHashModelSimpleObjectWrapper. 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 classDOMNodeModelDeprecated.UseNodeModelinsteadMethods in freemarker.template.utility that return TemplateHashModel Modifier and Type Method Description TemplateHashModelObjectWrapperWithAPISupport. wrapAsAPI(java.lang.Object obj)Wraps an object to aTemplateModelthat exposes the object's "native" (usually, Java) API.static TemplateHashModelTemplateModelUtils. wrapAsHashUnion(ObjectWrapper objectWrapper, java.lang.Object... hashLikeObjects)Same asTemplateModelUtils.wrapAsHashUnion(ObjectWrapper, List), but uses a varargs parameter instead of aList.static TemplateHashModelTemplateModelUtils. wrapAsHashUnion(ObjectWrapper objectWrapper, java.util.List<?> hashLikeObjects)Creates aTemplateHashModelthat is the union of the hash-like objects passed in as argument.
-