Uses of Package
freemarker.template
-
Packages that use freemarker.template Package Description freemarker.cache Template loading and caching.freemarker.core The seldom used or advanced parts of the fundamental FreeMarker API, compared tofreemarker.template.freemarker.debug Debugging API; experimental status, might change! This is to support debugging in IDE-s.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. -
Classes in freemarker.template used by freemarker.cache Class Description Configuration The main entry point into the FreeMarker API; encapsulates the configuration settings of FreeMarker, also serves as a central template-loading and caching service.Template Stores an already parsed template, ready to be processed (rendered) for unlimited times, possibly from multiple threads. -
Classes in freemarker.template used by freemarker.core Class Description AttemptExceptionReporter Used for theattempt_exception_reportedconfiguration setting.Configuration The main entry point into the FreeMarker API; encapsulates the configuration settings of FreeMarker, also serves as a central template-loading and caching service.MalformedTemplateNameException Indicates that the template name given was malformed according theTemplateNameFormatin use.ObjectWrapper Maps Java objects to the type-system of FreeMarker Template Language (see theTemplateModelinterfaces).SimpleHash A simple implementation of theTemplateHashModelExinterface, using its own underlyingMaporSortedMapfor storing the hash entries.Template Stores an already parsed template, ready to be processed (rendered) for unlimited times, possibly from multiple threads.TemplateDateModel "date", "time" and "date-time" template language data types: corresponds toDate.TemplateDirectiveModel "directive" template language data type: used as user-defined directives (much like macros) in templates.TemplateException Runtime exception in a template (as opposed to a parsing-time exception:ParseException).TemplateExceptionHandler Used for thetemplate_exception_handlerconfiguration setting.TemplateHashModel "hash" template language data type: an object that contains other objects accessible through string keys (sub-variable names).TemplateHashModelEx "extended hash" template language data type; extendsTemplateHashModelby allowing iterating through its keys and values.TemplateHashModelEx2 Adds key-value pair listing capability toTemplateHashModelEx.TemplateModel The common super-interface of the interfaces that stand for the FreeMarker Template Language (FTL) data types.TemplateModelException ObjectWrapper-s may throw this when wrapping/unwrapping fails, orTemplateModelmethods throw this if the requested data can't be retrieved.TemplateNodeModel "node" template language data type: an object that is a node in a tree.TemplateNumberModel "number" template language data type; an object that stores a number.TemplateScalarModel "string" template language data-type; like in Java, an unmodifiable UNICODE character sequence.Version Represents a version number plus the further qualifiers and build info.WrappingTemplateModel Convenience base-class for containers that wrap their contained arbitrary Java objects intoTemplateModelinstances. -
Classes in freemarker.template used by freemarker.debug Class Description TemplateModelException ObjectWrapper-s may throw this when wrapping/unwrapping fails, orTemplateModelmethods throw this if the requested data can't be retrieved. -
Classes in freemarker.template used by freemarker.ext.beans Class Description AdapterTemplateModel ATemplateModelthat can be unwrapped and then it considers a provided desired (hint) class.ObjectWrapper Maps Java objects to the type-system of FreeMarker Template Language (see theTemplateModelinterfaces).ObjectWrapperAndUnwrapper Experimental - subject to change: Adds functionality toObjectWrapperthat creates a plain Java object from aTemplateModel.TemplateBooleanModel "boolean" template language data type; same as in Java; eithertrueorfalse.TemplateCollectionModel "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.TemplateDateModel "date", "time" and "date-time" template language data types: corresponds toDate.TemplateException Runtime exception in a template (as opposed to a parsing-time exception:ParseException).TemplateHashModel "hash" template language data type: an object that contains other objects accessible through string keys (sub-variable names).TemplateHashModelEx "extended hash" template language data type; extendsTemplateHashModelby allowing iterating through its keys and values.TemplateHashModelEx2 Adds key-value pair listing capability toTemplateHashModelEx.TemplateHashModelEx2.KeyValuePairIterator Iterates over the key-value pairs in a hash.TemplateMethodModel Deprecated.UseTemplateMethodModelExinstead.TemplateMethodModelEx "extended method" template language data type: Objects that act like functions.TemplateModel The common super-interface of the interfaces that stand for the FreeMarker Template Language (FTL) data types.TemplateModelAdapter Implemented by classes that serve as adapters for template model objects in some other object model.TemplateModelException ObjectWrapper-s may throw this when wrapping/unwrapping fails, orTemplateModelmethods throw this if the requested data can't be retrieved.TemplateModelIterator Used to iterate over a set of template models once; usually returned fromTemplateCollectionModel.iterator().TemplateModelWithAPISupport ATemplateModelon which the?apioperation can be applied.TemplateNumberModel "number" template language data type; an object that stores a number.TemplateScalarModel "string" template language data-type; like in Java, an unmodifiable UNICODE character sequence.TemplateSequenceModel "sequence" template language data type; an object that contains other objects accessible through an integer 0-based index.Version Represents a version number plus the further qualifiers and build info.WrappingTemplateModel Convenience base-class for containers that wrap their contained arbitrary Java objects intoTemplateModelinstances. -
Classes in freemarker.template used by freemarker.ext.dom Class Description AdapterTemplateModel ATemplateModelthat can be unwrapped and then it considers a provided desired (hint) class.TemplateHashModel "hash" template language data type: an object that contains other objects accessible through string keys (sub-variable names).TemplateModel The common super-interface of the interfaces that stand for the FreeMarker Template Language (FTL) data types.TemplateModelException ObjectWrapper-s may throw this when wrapping/unwrapping fails, orTemplateModelmethods throw this if the requested data can't be retrieved.TemplateNodeModel "node" template language data type: an object that is a node in a tree.TemplateNodeModelEx ATemplateNodeModelthat supports navigating to the previous and next sibling nodes.TemplateSequenceModel "sequence" template language data type; an object that contains other objects accessible through an integer 0-based index. -
Classes in freemarker.template used by freemarker.ext.jdom Class Description TemplateCollectionModel "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.TemplateHashModel "hash" template language data type: an object that contains other objects accessible through string keys (sub-variable names).TemplateMethodModel Deprecated.UseTemplateMethodModelExinstead.TemplateModel The common super-interface of the interfaces that stand for the FreeMarker Template Language (FTL) data types.TemplateModelException ObjectWrapper-s may throw this when wrapping/unwrapping fails, orTemplateModelmethods throw this if the requested data can't be retrieved.TemplateModelIterator Used to iterate over a set of template models once; usually returned fromTemplateCollectionModel.iterator().TemplateScalarModel "string" template language data-type; like in Java, an unmodifiable UNICODE character sequence.TemplateSequenceModel "sequence" template language data type; an object that contains other objects accessible through an integer 0-based index. -
Classes in freemarker.template used by freemarker.ext.jsp Class Description ObjectWrapper Maps Java objects to the type-system of FreeMarker Template Language (see theTemplateModelinterfaces).TemplateHashModel "hash" template language data type: an object that contains other objects accessible through string keys (sub-variable names).TemplateModel The common super-interface of the interfaces that stand for the FreeMarker Template Language (FTL) data types.TemplateModelException ObjectWrapper-s may throw this when wrapping/unwrapping fails, orTemplateModelmethods throw this if the requested data can't be retrieved. -
Classes in freemarker.template used by freemarker.ext.servlet Class Description Configuration The main entry point into the FreeMarker API; encapsulates the configuration settings of FreeMarker, also serves as a central template-loading and caching service.ObjectWrapper Maps Java objects to the type-system of FreeMarker Template Language (see theTemplateModelinterfaces).SimpleHash A simple implementation of theTemplateHashModelExinterface, using its own underlyingMaporSortedMapfor storing the hash entries.Template Stores an already parsed template, ready to be processed (rendered) for unlimited times, possibly from multiple threads.TemplateCollectionModel "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.TemplateDirectiveBody Represents the nested content of a directive (TemplateDirectiveModel) invocation.TemplateDirectiveModel "directive" template language data type: used as user-defined directives (much like macros) in templates.TemplateException Runtime exception in a template (as opposed to a parsing-time exception:ParseException).TemplateHashModel "hash" template language data type: an object that contains other objects accessible through string keys (sub-variable names).TemplateHashModelEx "extended hash" template language data type; extendsTemplateHashModelby allowing iterating through its keys and values.TemplateHashModelEx2 Adds key-value pair listing capability toTemplateHashModelEx.TemplateModel The common super-interface of the interfaces that stand for the FreeMarker Template Language (FTL) data types.TemplateModelException ObjectWrapper-s may throw this when wrapping/unwrapping fails, orTemplateModelmethods throw this if the requested data can't be retrieved.WrappingTemplateModel Convenience base-class for containers that wrap their contained arbitrary Java objects intoTemplateModelinstances. -
Classes in freemarker.template used by freemarker.ext.util Class Description ObjectWrapper Maps Java objects to the type-system of FreeMarker Template Language (see theTemplateModelinterfaces).TemplateModel The common super-interface of the interfaces that stand for the FreeMarker Template Language (FTL) data types. -
Classes in freemarker.template used by freemarker.ext.xml Class Description TemplateHashModel "hash" template language data type: an object that contains other objects accessible through string keys (sub-variable names).TemplateMethodModel Deprecated.UseTemplateMethodModelExinstead.TemplateModel The common super-interface of the interfaces that stand for the FreeMarker Template Language (FTL) data types.TemplateModelException ObjectWrapper-s may throw this when wrapping/unwrapping fails, orTemplateModelmethods throw this if the requested data can't be retrieved.TemplateNodeModel "node" template language data type: an object that is a node in a tree.TemplateScalarModel "string" template language data-type; like in Java, an unmodifiable UNICODE character sequence.TemplateSequenceModel "sequence" template language data type; an object that contains other objects accessible through an integer 0-based index. -
Classes in freemarker.template used by freemarker.template Class Description AdapterTemplateModel ATemplateModelthat can be unwrapped and then it considers a provided desired (hint) class.AttemptExceptionReporter Used for theattempt_exception_reportedconfiguration setting.Configuration The main entry point into the FreeMarker API; encapsulates the configuration settings of FreeMarker, also serves as a central template-loading and caching service.DefaultArrayAdapter Adapts anarrayof a non-primitive elements to the correspondingTemplateModelinterface(s), most importantly toTemplateHashModelEx.DefaultEnumerationAdapter Adapts anEnumerationto the correspondingTemplateModelinterface(s), most importantly toTemplateCollectionModel.DefaultIterableAdapter Adapts anIterableto the correspondingTemplateModelinterface(s), most importantly toTemplateCollectionModel.DefaultIteratorAdapter Adapts anIteratorto the correspondingTemplateModelinterface(s), most importantly toTemplateCollectionModel.DefaultListAdapter Adapts aListto the correspondingTemplateModelinterface(s), most importantly toTemplateSequenceModel.DefaultMapAdapter Adapts aMapto the correspondingTemplateModelinterface(s), most importantly toTemplateHashModelEx.DefaultNonListCollectionAdapter Adapts a non-ListJavaCollectionto the correspondingTemplateModelinterface(s), most importantly toTemplateCollectionModelEx.DefaultObjectWrapper The default implementation of theObjectWrapperinterface.DefaultObjectWrapperConfiguration HoldsDefaultObjectWrapperconfiguration settings and defines their defaults.LocalizedString An abstract base class for scalars that vary by locale.MalformedTemplateNameException Indicates that the template name given was malformed according theTemplateNameFormatin use.ObjectWrapper Maps Java objects to the type-system of FreeMarker Template Language (see theTemplateModelinterfaces).ObjectWrapperAndUnwrapper Experimental - subject to change: Adds functionality toObjectWrapperthat creates a plain Java object from aTemplateModel.SimpleHash A simple implementation of theTemplateHashModelExinterface, using its own underlyingMaporSortedMapfor storing the hash entries.SimpleScalar A simple implementation of the TemplateScalarModel interface, using a String.SimpleSequence A simple implementation of theTemplateSequenceModelinterface, using its own underlyingListfor storing the list items.Template Stores an already parsed template, ready to be processed (rendered) for unlimited times, possibly from multiple threads.TemplateBooleanModel "boolean" template language data type; same as in Java; eithertrueorfalse.TemplateCollectionModel "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.TemplateCollectionModelEx "collection" template language data type: Adds size/emptiness querybility toTemplateCollectionModel.TemplateDateModel "date", "time" and "date-time" template language data types: corresponds toDate.TemplateDirectiveBody Represents the nested content of a directive (TemplateDirectiveModel) invocation.TemplateException Runtime exception in a template (as opposed to a parsing-time exception:ParseException).TemplateExceptionHandler Used for thetemplate_exception_handlerconfiguration setting.TemplateHashModel "hash" template language data type: an object that contains other objects accessible through string keys (sub-variable names).TemplateHashModelEx "extended hash" template language data type; extendsTemplateHashModelby allowing iterating through its keys and values.TemplateHashModelEx2 Adds key-value pair listing capability toTemplateHashModelEx.TemplateHashModelEx2.KeyValuePair A key-value pair in a hash; used forTemplateHashModelEx2.KeyValuePairIterator.TemplateHashModelEx2.KeyValuePairIterator Iterates over the key-value pairs in a hash.TemplateMethodModel Deprecated.UseTemplateMethodModelExinstead.TemplateModel The common super-interface of the interfaces that stand for the FreeMarker Template Language (FTL) data types.TemplateModelException ObjectWrapper-s may throw this when wrapping/unwrapping fails, orTemplateModelmethods throw this if the requested data can't be retrieved.TemplateModelIterator Used to iterate over a set of template models once; usually returned fromTemplateCollectionModel.iterator().TemplateModelWithAPISupport ATemplateModelon which the?apioperation can be applied.TemplateNodeModel "node" template language data type: an object that is a node in a tree.TemplateNodeModelEx ATemplateNodeModelthat supports navigating to the previous and next sibling nodes.TemplateNotFoundException Thrown whenConfiguration.getTemplate(String)(or similar) doesn't find a template.TemplateNumberModel "number" template language data type; an object that stores a number.TemplateScalarModel "string" template language data-type; like in Java, an unmodifiable UNICODE character sequence.TemplateSequenceModel "sequence" template language data type; an object that contains other objects accessible through an integer 0-based index.Version Represents a version number plus the further qualifiers and build info.WrappingTemplateModel Convenience base-class for containers that wrap their contained arbitrary Java objects intoTemplateModelinstances. -
Classes in freemarker.template used by freemarker.template.utility Class Description ObjectWrapper Maps Java objects to the type-system of FreeMarker Template Language (see theTemplateModelinterfaces).ObjectWrapperAndUnwrapper Experimental - subject to change: Adds functionality toObjectWrapperthat creates a plain Java object from aTemplateModel.TemplateBooleanModel "boolean" template language data type; same as in Java; eithertrueorfalse.TemplateCollectionModel "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.TemplateHashModel "hash" template language data type: an object that contains other objects accessible through string keys (sub-variable names).TemplateHashModelEx "extended hash" template language data type; extendsTemplateHashModelby allowing iterating through its keys and values.TemplateHashModelEx2 Adds key-value pair listing capability toTemplateHashModelEx.TemplateHashModelEx2.KeyValuePairIterator Iterates over the key-value pairs in a hash.TemplateMethodModel Deprecated.UseTemplateMethodModelExinstead.TemplateMethodModelEx "extended method" template language data type: Objects that act like functions.TemplateModel The common super-interface of the interfaces that stand for the FreeMarker Template Language (FTL) data types.TemplateModelException ObjectWrapper-s may throw this when wrapping/unwrapping fails, orTemplateModelmethods throw this if the requested data can't be retrieved.TemplateModelIterator Used to iterate over a set of template models once; usually returned fromTemplateCollectionModel.iterator().TemplateNumberModel "number" template language data type; an object that stores a number.TemplateScalarModel "string" template language data-type; like in Java, an unmodifiable UNICODE character sequence.TemplateSequenceModel "sequence" template language data type; an object that contains other objects accessible through an integer 0-based index.TemplateTransformModel "transform" template language data type: user-defined directives (much like macros) specialized on filtering output; you should rather use the newerTemplateDirectiveModelinstead.