Uses of Interface
freemarker.template.TemplateScalarModel
Packages that use TemplateScalarModel
Package
Description
The seldom used or advanced parts of the fundamental FreeMarker API, compared to
freemarker.template.The default object wrapper of FreeMarker uses
this to expose Java Beans and POJO-s to templates.
Deprecated, use W3C DOM (
freemarker.ext.dom) instead;
Exposes JDOM XML nodes to templates.Deprecated, use W3C DOM with
freemarker.ext.dom instead;
Exposes XML from DOM, dom4j or JDOM nodes, uniformly.The fundamental, most commonly used API-s of FreeMarker;
start with
Configuration (see also the
Getting Started in the Manual.)Various classes used by core FreeMarker code but might be useful outside of it too.
-
Uses of TemplateScalarModel in freemarker.core
Methods in freemarker.core that return TemplateScalarModelModifier and TypeMethodDescriptionDefaultTruncateBuiltinAlgorithm.truncate(String s, int maxLength, TemplateScalarModel terminator, Integer terminatorLength, Environment env) abstract TemplateScalarModelTruncateBuiltinAlgorithm.truncate(String s, int maxLength, TemplateScalarModel terminator, Integer terminatorLength, Environment env) Corresponds to?truncate(...)in templates.DefaultTruncateBuiltinAlgorithm.truncateC(String s, int maxLength, TemplateScalarModel terminator, Integer terminatorLength, Environment env) abstract TemplateScalarModelTruncateBuiltinAlgorithm.truncateC(String s, int maxLength, TemplateScalarModel terminator, Integer terminatorLength, Environment env) Corresponds to?truncate_c_m(...)in templates.DefaultTruncateBuiltinAlgorithm.truncateW(String s, int maxLength, TemplateScalarModel terminator, Integer terminatorLength, Environment env) abstract TemplateScalarModelTruncateBuiltinAlgorithm.truncateW(String s, int maxLength, TemplateScalarModel terminator, Integer terminatorLength, Environment env) Corresponds to?truncate_w(...)in templates.Methods in freemarker.core with parameters of type TemplateScalarModelModifier and TypeMethodDescriptionDefaultTruncateBuiltinAlgorithm.truncate(String s, int maxLength, TemplateScalarModel terminator, Integer terminatorLength, Environment env) abstract TemplateScalarModelTruncateBuiltinAlgorithm.truncate(String s, int maxLength, TemplateScalarModel terminator, Integer terminatorLength, Environment env) Corresponds to?truncate(...)in templates.DefaultTruncateBuiltinAlgorithm.truncateC(String s, int maxLength, TemplateScalarModel terminator, Integer terminatorLength, Environment env) abstract TemplateScalarModelTruncateBuiltinAlgorithm.truncateC(String s, int maxLength, TemplateScalarModel terminator, Integer terminatorLength, Environment env) Corresponds to?truncate_c_m(...)in templates.DefaultTruncateBuiltinAlgorithm.truncateW(String s, int maxLength, TemplateScalarModel terminator, Integer terminatorLength, Environment env) abstract TemplateScalarModelTruncateBuiltinAlgorithm.truncateW(String s, int maxLength, TemplateScalarModel terminator, Integer terminatorLength, Environment env) Corresponds to?truncate_w(...)in templates. -
Uses of TemplateScalarModel in freemarker.ext.beans
Classes in freemarker.ext.beans that implement TemplateScalarModelModifier and TypeClassDescriptionclassA special case ofBeanModelthat can wrap Java collections and that implements theTemplateCollectionModelin order to be usable in a <#list> block.classA special case ofBeanModelthat adds implementation forTemplateMethodModelExon map objects that is a shortcut for the Map.get() method.classSubclass ofBeanModelthat exposes the return value of theObject.toString()method through theTemplateScalarModelinterface. -
Uses of TemplateScalarModel in freemarker.ext.jdom
Classes in freemarker.ext.jdom that implement TemplateScalarModel -
Uses of TemplateScalarModel in freemarker.ext.xml
Classes in freemarker.ext.xml that implement TemplateScalarModel -
Uses of TemplateScalarModel in freemarker.template
Classes in freemarker.template that implement TemplateScalarModelModifier and TypeClassDescriptionclassAn abstract base class for scalars that vary by locale.classA concrete implementation ofLocalizedStringthat gets a localized string from aResourceBundlefinal classA simple implementation of the TemplateScalarModel interface, using a String. -
Uses of TemplateScalarModel in freemarker.template.utility
Fields in freemarker.template.utility declared as TemplateScalarModel
NodeModelinstead.