Uses of Interface
freemarker.template.TemplateModel
-
Packages that use TemplateModel 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.util Various classes used byfreemarker.extbut might be useful outside it too.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 TemplateModel in freemarker.core
Subinterfaces of TemplateModel in freemarker.core Modifier and Type Interface Description interfaceTemplateMarkupOutputModel<MO extends TemplateMarkupOutputModel<MO>>"markup output" template language data-type; stores markup (some kind of "rich text" / structured format, as opposed to plain text) that meant to be printed as template output.Classes in freemarker.core that implement TemplateModel Modifier and Type Class Description classCommonTemplateMarkupOutputModel<MO extends CommonTemplateMarkupOutputModel<MO>>Common superclass for implementingTemplateMarkupOutputModel-s that belong to aCommonMarkupOutputFormatsubclass format.classEnvironment.NamespaceclassTemplateCombinedMarkupOutputModelStores combined markup to be printed; used withCombinedMarkupOutputFormat.classTemplateHTMLOutputModelStores HTML markup to be printed; used withHTMLOutputFormat.classTemplateRTFOutputModelStores RTF markup to be printed; used withRTFOutputFormat.classTemplateXHTMLOutputModelStores HTML markup to be printed; used withHTMLOutputFormat.classTemplateXMLOutputModelStores XML markup to be printed; used withXMLOutputFormat.Methods in freemarker.core that return TemplateModel Modifier and Type Method Description TemplateModelEnvironment. getDataModelOrSharedVariable(java.lang.String name)Returns the variable from the data-model, or if it's not there, then from the Configuration.setSharedVariables(Map) shared variables}TemplateModelEnvironment. getGlobalVariable(java.lang.String name)Returns the globally visible variable of the given name, ornull.TemplateModelEnvironment. getLocalVariable(java.lang.String name)Returns the loop or macro local variable corresponding to this variable name.TemplateModelEnvironment. getVariable(java.lang.String name)Returns the variable that is visible in this context, ornullif the variable is not found.TemplateModelDefaultTruncateBuiltinAlgorithm. truncateCM(java.lang.String s, int maxLength, TemplateModel terminator, java.lang.Integer terminatorLength, Environment env)abstract TemplateModelTruncateBuiltinAlgorithm. truncateCM(java.lang.String s, int maxLength, TemplateModel terminator, java.lang.Integer terminatorLength, Environment env)Corresponds to?truncate_c_m(...)in templates.TemplateModelDefaultTruncateBuiltinAlgorithm. truncateM(java.lang.String s, int maxLength, TemplateModel terminator, java.lang.Integer terminatorLength, Environment env)abstract TemplateModelTruncateBuiltinAlgorithm. truncateM(java.lang.String s, int maxLength, TemplateModel terminator, java.lang.Integer terminatorLength, Environment env)Corresponds to?truncate_m(...)in templates.TemplateModelDefaultTruncateBuiltinAlgorithm. truncateWM(java.lang.String s, int maxLength, TemplateModel terminator, java.lang.Integer terminatorLength, Environment env)abstract TemplateModelTruncateBuiltinAlgorithm. truncateWM(java.lang.String s, int maxLength, TemplateModel terminator, java.lang.Integer terminatorLength, Environment env)Corresponds to?truncate_w_m(...)in templates.Methods in freemarker.core with parameters of type TemplateModel Modifier and Type Method Description booleanEnvironment. applyEqualsOperator(TemplateModel leftValue, TemplateModel rightValue)Compares twoTemplateModel-s according the rules of the FTL "==" operator.booleanEnvironment. applyEqualsOperatorLenient(TemplateModel leftValue, TemplateModel rightValue)Compares twoTemplateModel-s according the rules of the FTL "==" operator, except that if the two types are incompatible, they are treated as non-equal instead of throwing an exception.booleanEnvironment. applyGreaterThanOperator(TemplateModel leftValue, TemplateModel rightValue)Compares twoTemplateModel-s according the rules of the FTL ">" operator.booleanEnvironment. applyLessThanOperator(TemplateModel leftValue, TemplateModel rightValue)Compares twoTemplateModel-s according the rules of the FTL "<" operator.booleanEnvironment. applyLessThanOrEqualsOperator(TemplateModel leftValue, TemplateModel rightValue)Compares twoTemplateModel-s according the rules of the FTL "<" operator.booleanEnvironment. applyWithGreaterThanOrEqualsOperator(TemplateModel leftValue, TemplateModel rightValue)Compares twoTemplateModel-s according the rules of the FTL ">=" operator.static booleanNonSequenceOrCollectionException. isWrappedIterable(TemplateModel model)voidEnvironment. setGlobalVariable(java.lang.String name, TemplateModel value)Sets a variable in the global namespace, like<#global name=value>.voidEnvironment. setLocalVariable(java.lang.String name, TemplateModel value)Sets a local variable that's on the top-level inside a macro or function invocation, like<#local name=value>.voidEnvironment. setVariable(java.lang.String name, TemplateModel value)Sets a variable in the current namespace, like<#assign name=value>.TemplateModelDefaultTruncateBuiltinAlgorithm. truncateCM(java.lang.String s, int maxLength, TemplateModel terminator, java.lang.Integer terminatorLength, Environment env)abstract TemplateModelTruncateBuiltinAlgorithm. truncateCM(java.lang.String s, int maxLength, TemplateModel terminator, java.lang.Integer terminatorLength, Environment env)Corresponds to?truncate_c_m(...)in templates.TemplateModelDefaultTruncateBuiltinAlgorithm. truncateM(java.lang.String s, int maxLength, TemplateModel terminator, java.lang.Integer terminatorLength, Environment env)abstract TemplateModelTruncateBuiltinAlgorithm. truncateM(java.lang.String s, int maxLength, TemplateModel terminator, java.lang.Integer terminatorLength, Environment env)Corresponds to?truncate_m(...)in templates.TemplateModelDefaultTruncateBuiltinAlgorithm. truncateWM(java.lang.String s, int maxLength, TemplateModel terminator, java.lang.Integer terminatorLength, Environment env)abstract TemplateModelTruncateBuiltinAlgorithm. truncateWM(java.lang.String s, int maxLength, TemplateModel terminator, java.lang.Integer terminatorLength, Environment env)Corresponds to?truncate_w_m(...)in templates. -
Uses of TemplateModel in freemarker.ext.beans
Classes in freemarker.ext.beans that implement TemplateModel 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.classOverloadedMethodsModelWraps a set of same-name overloaded methods behindTemplateMethodModelinterface, like if it was a single method, chooses among them behind the scenes on call-time based on the argument values.classResourceBundleModelA hash model that wraps a resource bundle.classSimpleMapModelModel used byBeansWrapperwhen simpleMapWrapper mode is enabled.classSimpleMethodModelA class that will wrap a reflected method call into aTemplateMethodModelinterface.classStringModelSubclass ofBeanModelthat exposes the return value of theObject.toString()method through theTemplateScalarModelinterface.Methods in freemarker.ext.beans that return TemplateModel Modifier and Type Method Description protected TemplateModelBeansModelCache. create(java.lang.Object object)TemplateModelArrayModel. get(int index)TemplateModelBeanModel. get(java.lang.String key)Uses Beans introspection to locate a property or method with name matching the key name.TemplateModelCollectionModel. get(int index)Retrieves the i-th object from the collection, wrapped as a TemplateModel.TemplateModelOverloadedMethodsModel. get(int index)TemplateModelSimpleMapModel. get(java.lang.String key)TemplateModelSimpleMethodModel. get(int index)TemplateModelBeanModel. getAPI()TemplateModelSimpleMapModel. getAPI()protected TemplateModelBeansWrapper. getInstance(java.lang.Object object, ModelFactory factory)Deprecated.overrideBeansWrapper.getModelFactory(Class)instead.TemplateModelHashAdapter. getTemplateModel()protected TemplateModelBeanModel. invokeGenericGet(java.util.Map classInfo, java.lang.Class<?> clazz, java.lang.String key)protected TemplateModelMapModel. invokeGenericGet(java.util.Map keyMap, java.lang.Class clazz, java.lang.String key)Overridden to invoke the generic get method by casting to Map instead of through reflection - should yield better performance.protected TemplateModelResourceBundleModel. invokeGenericGet(java.util.Map keyMap, java.lang.Class clazz, java.lang.String key)Overridden to invoke the getObject method of the resource bundle.protected TemplateModelBeansWrapper. invokeMethod(java.lang.Object object, java.lang.reflect.Method method, java.lang.Object[] args)Invokes the specified method, wrapping the return value.TemplateModelEnumerationModel. next()Calls underlyingEnumeration.nextElement()and wraps the result.TemplateModelIteratorModel. next()Calls underlyingIterator.next()and wraps the result.protected TemplateModelBeansWrapper. readField(java.lang.Object object, java.lang.reflect.Field field)Reads the specified field, returns its value asTemplateModel.protected TemplateModelBeanModel. wrap(java.lang.Object obj)TemplateModelBeansWrapper. wrap(java.lang.Object object)Wraps the object with a template model that is most specific for the object's class.Methods in freemarker.ext.beans with parameters of type TemplateModel Modifier and Type Method Description voidBeansWrapper. setNullModel(TemplateModel nullModel)Deprecated.Changing thenullmodel can cause a lot of confusion; don't do it.java.lang.ObjectBeansWrapper. tryUnwrapTo(TemplateModel model, java.lang.Class<?> targetClass)protected java.lang.ObjectBeanModel. unwrap(TemplateModel model)java.lang.ObjectBeansWrapper. unwrap(TemplateModel model)Attempts to unwrap a model into underlying object.java.lang.ObjectBeansWrapper. unwrap(TemplateModel model, java.lang.Class<?> targetClass)Attempts to unwrap a model into an object of the desired class. -
Uses of TemplateModel in freemarker.ext.dom
Classes in freemarker.ext.dom that implement TemplateModel Modifier and Type Class Description classNodeModelA base class for wrapping a single W3C DOM Node as a FreeMarker template model.Methods in freemarker.ext.dom that return TemplateModel Modifier and Type Method Description TemplateModelNodeModel. exec(java.util.List args)TemplateModelXPathSupport. executeQuery(java.lang.Object context, java.lang.String xpathQuery)TemplateModelNodeModel. get(int i)TemplateModelNodeModel. get(java.lang.String key) -
Uses of TemplateModel in freemarker.ext.jdom
Classes in freemarker.ext.jdom that implement TemplateModel Modifier and Type Class Description classNodeListModelDeprecated.UseNodeModelinstead.Methods in freemarker.ext.jdom that return TemplateModel Modifier and Type Method Description TemplateModelNodeListModel. get(int i)Deprecated.Retrieves the i-th element of the node list.TemplateModelNodeListModel. get(java.lang.String key)Deprecated.Provides node list traversal as well as special functions: filtering by name, filtering by node type, shallow-copying, and duplicate removal. -
Uses of TemplateModel in freemarker.ext.jsp
Classes in freemarker.ext.jsp that implement TemplateModel Modifier and Type Class Description classTaglibFactoryA hash model associated with a servlet context that can load JSP tag libraries associated with that servlet context.Methods in freemarker.ext.jsp that return TemplateModel Modifier and Type Method Description TemplateModelTaglibFactory. get(java.lang.String taglibUri)Retrieves a JSP tag library identified by an URI. -
Uses of TemplateModel in freemarker.ext.servlet
Classes in freemarker.ext.servlet that implement TemplateModel 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.classIncludePageA model that when invoked with a 'path' parameter will perform a servlet include.classServletContextHashModelTemplateHashModel wrapper for a ServletContext attributes.Methods in freemarker.ext.servlet that return TemplateModel Modifier and Type Method Description protected TemplateModelFreemarkerServlet. createModel(ObjectWrapper objectWrapper, javax.servlet.ServletContext servletContext, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)TemplateModelAllHttpScopesHashModel. get(java.lang.String key)TemplateModelHttpRequestHashModel. get(java.lang.String key)TemplateModelHttpRequestParametersHashModel. get(java.lang.String key)TemplateModelHttpSessionHashModel. get(java.lang.String key)TemplateModelServletContextHashModel. get(java.lang.String key)Methods in freemarker.ext.servlet with parameters of type TemplateModel Modifier and Type Method Description voidIncludePage. execute(Environment env, java.util.Map params, TemplateModel[] loopVars, TemplateDirectiveBody body)protected voidFreemarkerServlet. postTemplateProcess(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Template template, TemplateModel data)Called after the execution returns fromTemplate.process(Object, java.io.Writer).protected booleanFreemarkerServlet. preTemplateProcess(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Template template, TemplateModel model)Called before the execution is passed toTemplate.process(Object, java.io.Writer).voidAllHttpScopesHashModel. putUnlistedModel(java.lang.String key, TemplateModel model)Stores a model in the hash so that it doesn't show up in keys() and values() methods. -
Uses of TemplateModel in freemarker.ext.util
Subinterfaces of TemplateModel in freemarker.ext.util Modifier and Type Interface Description interfaceWrapperTemplateModelA generic interface for template models that wrap some underlying object, and wish to provide access to that wrapped object.Methods in freemarker.ext.util that return TemplateModel Modifier and Type Method Description protected abstract TemplateModelModelCache. create(java.lang.Object object)TemplateModelModelFactory. create(java.lang.Object object, ObjectWrapper wrapper)Create a wrapping model for the specified object that belongs to the specified wrapper.TemplateModelModelCache. getInstance(java.lang.Object object) -
Uses of TemplateModel in freemarker.ext.xml
Classes in freemarker.ext.xml that implement TemplateModel Modifier and Type Class Description classNodeListModelDeprecated.UseNodeModelinstead.Methods in freemarker.ext.xml that return TemplateModel Modifier and Type Method Description TemplateModelNodeListModel. get(int index)Deprecated.Selects a single node from this model's nodelist by its list index and returns a new NodeListModel containing that single node.TemplateModelNodeListModel. get(java.lang.String key)Deprecated.Returns a new NodeListModel containing the nodes that result from applying an operator to this model's nodes. -
Uses of TemplateModel in freemarker.template
Subinterfaces of TemplateModel in freemarker.template Modifier and Type Interface Description interfaceAdapterTemplateModelATemplateModelthat can be unwrapped and then it considers a provided desired (hint) class.interfaceTemplateBooleanModel"boolean" template language data type; same as in Java; eithertrueorfalse.interfaceTemplateCollectionModel"collection" template language data type: a collection of values that can be enumerated, but can't be or not meant to be accessed by index or key, nor the number of elements in it is known.interfaceTemplateCollectionModelEx"collection" template language data type: Adds size/emptiness querybility toTemplateCollectionModel.interfaceTemplateDateModel"date", "time" and "date-time" template language data types: corresponds toDate.interfaceTemplateDirectiveModel"directive" template language data type: used as user-defined directives (much like macros) in templates.interfaceTemplateHashModel"hash" template language data type: an object that contains other objects accessible through string keys (sub-variable names).interfaceTemplateHashModelEx"extended hash" template language data type; extendsTemplateHashModelby allowing iterating through its keys and values.interfaceTemplateHashModelEx2Adds key-value pair listing capability toTemplateHashModelEx.interfaceTemplateMethodModelDeprecated.UseTemplateMethodModelExinstead.interfaceTemplateMethodModelEx"extended method" template language data type: Objects that act like functions.interfaceTemplateModelWithAPISupportATemplateModelon which the?apioperation can be applied.interfaceTemplateNodeModel"node" template language data type: an object that is a node in a tree.interfaceTemplateNodeModelExATemplateNodeModelthat supports navigating to the previous and next sibling nodes.interfaceTemplateNumberModel"number" template language data type; an object that stores a number.interfaceTemplateScalarModel"string" template language data-type; like in Java, an unmodifiable UNICODE character sequence.interfaceTemplateSequenceModel"sequence" template language data type; an object that contains other objects accessible through an integer 0-based index.interfaceTemplateTransformModel"transform" template language data type: user-defined directives (much like macros) specialized on filtering output; you should rather use the newerTemplateDirectiveModelinstead.Classes in freemarker.template that implement TemplateModel Modifier and Type Class Description classDefaultArrayAdapterAdapts anarrayof a non-primitive elements to the correspondingTemplateModelinterface(s), most importantly toTemplateHashModelEx.classDefaultEnumerationAdapterAdapts anEnumerationto the correspondingTemplateModelinterface(s), most importantly toTemplateCollectionModel.classDefaultIterableAdapterAdapts anIterableto the correspondingTemplateModelinterface(s), most importantly toTemplateCollectionModel.classDefaultIteratorAdapterAdapts anIteratorto the correspondingTemplateModelinterface(s), most importantly toTemplateCollectionModel.classDefaultListAdapterAdapts aListto the correspondingTemplateModelinterface(s), most importantly toTemplateSequenceModel.classDefaultMapAdapterAdapts aMapto the correspondingTemplateModelinterface(s), most importantly toTemplateHashModelEx.classDefaultNonListCollectionAdapterAdapts a non-ListJavaCollectionto the correspondingTemplateModelinterface(s), most importantly toTemplateCollectionModelEx.classLocalizedStringAn abstract base class for scalars that vary by locale.classResourceBundleLocalizedStringA concrete implementation ofLocalizedStringthat gets a localized string from aResourceBundleclassSimpleCollectionA simple implementation ofTemplateCollectionModel.classSimpleDateA simple implementation of the TemplateDateModel interface.classSimpleHashA simple implementation of theTemplateHashModelExinterface, using its own underlyingMaporSortedMapfor storing the hash entries.classSimpleListDeprecated.UseSimpleSequenceinstead.classSimpleNumberA simple implementation of the TemplateNumberModel interface.classSimpleScalarA simple implementation of the TemplateScalarModel interface, using a String.classSimpleSequenceA simple implementation of theTemplateSequenceModelinterface, using its own underlyingListfor storing the list items.classTemplateModelListSequenceA sequence that wraps aListofTemplateModel-s.Fields in freemarker.template declared as TemplateModel Modifier and Type Field Description static TemplateModelTemplateScalarModel. EMPTY_STRINGA constant value to use as the empty string.static TemplateModelTemplateModel. NOTHINGA general-purpose object to represent nothing.Methods in freemarker.template that return TemplateModel Modifier and Type Method Description TemplateModelDefaultListAdapter. get(int index)TemplateModelDefaultMapAdapter. get(java.lang.String key)TemplateModelSimpleHash. get(java.lang.String key)TemplateModelSimpleSequence. get(int index)Returns the item at the specified index of the list.TemplateModelTemplateHashModel. get(java.lang.String key)Gets a TemplateModel from the hash.TemplateModelTemplateModelListSequence. get(int index)TemplateModelTemplateSequenceModel. get(int index)Retrieves the i-th template model in this sequence.TemplateModelDefaultEnumerationAdapter. getAPI()TemplateModelDefaultIterableAdapter. getAPI()TemplateModelDefaultIteratorAdapter. getAPI()TemplateModelDefaultListAdapter. getAPI()TemplateModelDefaultMapAdapter. getAPI()TemplateModelDefaultNonListCollectionAdapter. getAPI()TemplateModelTemplateModelWithAPISupport. getAPI()Returns the model that exposes the (Java) API of the value.TemplateModelTemplateHashModelEx2.KeyValuePair. getKey()TemplateModelConfiguration. getSharedVariable(java.lang.String name)Gets a shared variable.TemplateModelTemplateModelAdapter. getTemplateModel()TemplateModelTemplateHashModelEx2.KeyValuePair. getValue()protected TemplateModelDefaultObjectWrapper. handleUnknownType(java.lang.Object obj)Called for an object that isn't considered to be of a "basic" Java type, like for an application specific type, or for a W3C DOM node.protected TemplateModelSimpleObjectWrapper. handleUnknownType(java.lang.Object obj)Called if a type other than the simple ones we know about is passed in.TemplateModelTemplateModelIterator. next()Returns the next model.TemplateModelDefaultObjectWrapper. wrap(java.lang.Object obj)Wraps the parameter object toTemplateModelinterface(s).TemplateModelObjectWrapper. wrap(java.lang.Object obj)Makes aTemplateModelout of a non-TemplateModelobject, usually by "wrapping" it into aTemplateModelimplementation that delegates to the original object.protected TemplateModelWrappingTemplateModel. wrap(java.lang.Object obj)Wraps the passed object into a template model using this object's object wrapper.TemplateModelDefaultObjectWrapper. wrapDomNode(java.lang.Object obj)Methods in freemarker.template with parameters of type TemplateModel Modifier and Type Method Description booleanDefaultNonListCollectionAdapter. contains(TemplateModel item)voidTemplateDirectiveModel. execute(Environment env, java.util.Map params, TemplateModel[] loopVars, TemplateDirectiveBody body)Executes this user-defined directive; called by FreeMarker when the user-defined directive is called in the template.voidConfiguration. setSharedVariable(java.lang.String name, TemplateModel tm)Adds a shared variable to the configuration.java.lang.ObjectObjectWrapperAndUnwrapper. tryUnwrapTo(TemplateModel tm, java.lang.Class<?> targetClass)Attempts to unwrap aTemplateModelto a plain Java object that's the instance of the given class (or isnull).java.lang.ObjectObjectWrapperAndUnwrapper. unwrap(TemplateModel tm)Unwraps aTemplateModelto a plain Java object. -
Uses of TemplateModel in freemarker.template.utility
Classes in freemarker.template.utility that implement TemplateModel Modifier and Type Class Description classCaptureOutputDeprecated.Use block-assignments instead, like<assign x>...</assign>.classDOMNodeModelDeprecated.UseNodeModelinsteadclassExecuteGives FreeMarker the the ability to execute external commands.classHtmlEscapePerforms an HTML escape of a given template fragment.classNormalizeNewlinesTransformer that supports FreeMarker legacy behavior: all newlines appearing within the transformed area will be transformed into the platform's default newline.classObjectConstructorAn object that you can make available in a template to instantiate arbitrary beans-wrapped objects in a template.classStandardCompressA filter that compresses each sequence of consecutive whitespace to a single line break (if the sequence contains a line break) or a single space.classXmlEscapePerforms an XML escaping of a given template fragment.Methods in freemarker.template.utility that return TemplateModel Modifier and Type Method Description TemplateModelDOMNodeModel. get(java.lang.String key)Deprecated.Methods in freemarker.template.utility with parameters of type TemplateModel Modifier and Type Method Description static java.lang.StringClassUtil. getFTLTypeDescription(TemplateModel tm)Returns the type description of a value with FTL terms (not plain class name), as it should be used in type-related error messages and for debugging purposes.static java.lang.ObjectDeepUnwrap. permissiveUnwrap(TemplateModel model)Same asDeepUnwrap.unwrap(TemplateModel), but it doesn't throw exception if it doesn't know how to unwrap the model, but rather returns it as-is.static java.lang.ObjectDeepUnwrap. premissiveUnwrap(TemplateModel model)Deprecated.the name of this method is mistyped.static java.lang.ObjectDeepUnwrap. unwrap(TemplateModel model)UnwrapsTemplateModel-s recursively.
-