Package | Description |
---|---|
freemarker.ext.beans |
The default object wrapper of FreeMarker uses
this to expose Java Beans and POJO-s to templates.
|
freemarker.ext.jdom |
Deprecated, use W3C DOM (
freemarker.ext.dom ) instead;
Exposes JDOM XML nodes to templates. |
freemarker.ext.jython |
Exposes Jython objects to templates.
|
freemarker.ext.rhino |
Exposes Rhino (ECMAScript) objects to templates.
|
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.template |
The fundamental, most commonly used API-s of FreeMarker;
start with
Configuration (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.
|
Modifier and Type | Class and Description |
---|---|
class |
ArrayModel
A class that will wrap an arbitrary array into
TemplateCollectionModel
and TemplateSequenceModel interfaces. |
class |
CollectionModel
A special case of
BeanModel that can wrap Java collections
and that implements the TemplateCollectionModel in order to be usable
in a <#list> block. |
class |
EnumerationModel
A class that adds
TemplateModelIterator functionality to the
Enumeration interface implementers. |
class |
IteratorModel
A class that adds
TemplateModelIterator functionality to the
Iterator interface implementers. |
Modifier and Type | Method and Description |
---|---|
TemplateCollectionModel |
SimpleMapModel.keys() |
TemplateCollectionModel |
BeanModel.keys() |
TemplateCollectionModel |
SimpleMapModel.values() |
TemplateCollectionModel |
BeanModel.values() |
Modifier and Type | Class and Description |
---|---|
class |
NodeListModel
Deprecated.
Use
NodeModel instead. |
Modifier and Type | Class and Description |
---|---|
class |
JythonSequenceModel
Model for Jython sequence objects (
PySequence descendants). |
Modifier and Type | Method and Description |
---|---|
TemplateCollectionModel |
JythonHashModel.keys()
Returns either
object.__findattr__("keys").__call__()
or object.__findattr__("keySet").__call__() . |
TemplateCollectionModel |
JythonHashModel.values()
Returns
object.__findattr__("values").__call__() . |
Modifier and Type | Method and Description |
---|---|
TemplateCollectionModel |
RhinoScriptableModel.keys() |
TemplateCollectionModel |
RhinoScriptableModel.values() |
Modifier and Type | Method and Description |
---|---|
TemplateCollectionModel |
HttpRequestParametersHashModel.keys() |
TemplateCollectionModel |
HttpRequestHashModel.keys() |
TemplateCollectionModel |
HttpRequestParametersHashModel.values() |
TemplateCollectionModel |
HttpRequestHashModel.values() |
Modifier and Type | Interface and Description |
---|---|
interface |
TemplateCollectionModelEx
"collection" template language data type: Adds size/emptiness querybility to
TemplateCollectionModel . |
Modifier and Type | Class and Description |
---|---|
class |
DefaultEnumerationAdapter
Adapts an
Enumeration to the corresponding TemplateModel interface(s), most importantly to
TemplateCollectionModel . |
class |
DefaultIterableAdapter
Adapts an
Iterable to the corresponding TemplateModel interface(s), most importantly to
TemplateCollectionModel . |
class |
DefaultIteratorAdapter
Adapts an
Iterator to the corresponding TemplateModel interface(s), most importantly to
TemplateCollectionModel . |
class |
DefaultNonListCollectionAdapter
Adapts a non-
List Java Collection to the corresponding TemplateModel interface(s), most
importantly to TemplateCollectionModelEx . |
class |
SimpleCollection
A simple implementation of
TemplateCollectionModel . |
Modifier and Type | Method and Description |
---|---|
TemplateCollectionModel |
TemplateHashModelEx.keys() |
TemplateCollectionModel |
SimpleHash.keys() |
TemplateCollectionModel |
DefaultMapAdapter.keys() |
TemplateCollectionModel |
TemplateHashModelEx.values() |
TemplateCollectionModel |
SimpleHash.values() |
TemplateCollectionModel |
DefaultMapAdapter.values() |
Constructor and Description |
---|
SimpleSequence(TemplateCollectionModel tcm)
Constructs a simple sequence from the passed collection model, which shouldn't be added to later.
|
Modifier and Type | Field and Description |
---|---|
static TemplateCollectionModel |
Constants.EMPTY_COLLECTION |