Uses of Interface
freemarker.template.TemplateModelWithAPISupport
-
Packages that use TemplateModelWithAPISupport Package Description freemarker.ext.beans The default object wrapper of FreeMarker uses this to expose Java Beans and POJO-s to templates.freemarker.template The fundamental, most commonly used API-s of FreeMarker; start withConfiguration
(see also the Getting Started in the Manual.) -
-
Uses of TemplateModelWithAPISupport in freemarker.ext.beans
Classes in freemarker.ext.beans that implement TemplateModelWithAPISupport 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. -
Uses of TemplateModelWithAPISupport in freemarker.template
Classes in freemarker.template that implement TemplateModelWithAPISupport Modifier and Type Class Description class
DefaultEnumerationAdapter
Adapts anEnumeration
to the correspondingTemplateModel
interface(s), most importantly toTemplateCollectionModel
.class
DefaultIterableAdapter
Adapts anIterable
to the correspondingTemplateModel
interface(s), most importantly toTemplateCollectionModel
.class
DefaultIteratorAdapter
Adapts anIterator
to the correspondingTemplateModel
interface(s), most importantly toTemplateCollectionModel
.class
DefaultListAdapter
Adapts aList
to the correspondingTemplateModel
interface(s), most importantly toTemplateSequenceModel
.class
DefaultMapAdapter
Adapts aMap
to the correspondingTemplateModel
interface(s), most importantly toTemplateHashModelEx
.class
DefaultNonListCollectionAdapter
Adapts a non-List
JavaCollection
to the correspondingTemplateModel
interface(s), most importantly toTemplateCollectionModelEx
.
-