Package | Description |
---|---|
freemarker.ext.beans |
The
default object wrapper of FreeMarker uses
this to expose Java Beans and POJO-s to templates, but it can also be used in itself as a
better alternative ObjectWrapper . |
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 Stared 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 | 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 | Description |
---|---|---|
TemplateCollectionModel |
BeanModel.keys() |
|
TemplateCollectionModel |
SimpleMapModel.keys() |
|
TemplateCollectionModel |
BeanModel.values() |
|
TemplateCollectionModel |
SimpleMapModel.values() |
Modifier and Type | Class | Description |
---|---|---|
class |
NodeListModel |
Deprecated.
Use
NodeModel instead. |
Modifier and Type | Class | Description |
---|---|---|
class |
JythonSequenceModel |
Model for Jython sequence objects (
PySequence descendants). |
Modifier and Type | Method | 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 | Description |
---|---|---|
TemplateCollectionModel |
RhinoScriptableModel.keys() |
|
TemplateCollectionModel |
RhinoScriptableModel.values() |
Modifier and Type | Method | Description |
---|---|---|
TemplateCollectionModel |
HttpRequestHashModel.keys() |
|
TemplateCollectionModel |
HttpRequestParametersHashModel.keys() |
|
TemplateCollectionModel |
HttpRequestHashModel.values() |
|
TemplateCollectionModel |
HttpRequestParametersHashModel.values() |
Modifier and Type | Interface | Description |
---|---|---|
interface |
TemplateCollectionModelEx |
Experimental - subject to change: "extended collection" template language data type: Adds size/emptiness
querybility and "contains" test to
TemplateCollectionModel . |
Modifier and Type | Class | Description |
---|---|---|
class |
DefaultIteratorAdapter |
Adapts an
Iterator to the corresponding TemplateModel interface(s), most importantly to
TemplateCollectionModel . |
class |
DefaultNonListCollectionAdapter |
Experimental - subject to change: 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 | Description |
---|---|---|
TemplateCollectionModel |
DefaultMapAdapter.keys() |
|
TemplateCollectionModel |
SimpleHash.keys() |
|
TemplateCollectionModel |
TemplateHashModelEx.keys() |
|
TemplateCollectionModel |
DefaultMapAdapter.values() |
|
TemplateCollectionModel |
SimpleHash.values() |
|
TemplateCollectionModel |
TemplateHashModelEx.values() |
Constructor | Description |
---|---|
SimpleSequence(TemplateCollectionModel tcm) |
Constructs a simple sequence from the passed collection model, which shouldn't be added to later.
|
Modifier and Type | Field | Description |
---|---|---|
static TemplateCollectionModel |
Constants.EMPTY_COLLECTION |