Package | Description |
---|---|
freemarker.core |
This package contains FreeMarker's core parsing/rendering functionality;
most casual users do not need to be aware of the classes in this package,
and can restrict their attention to the
freemarker.template
package. |
freemarker.ext.beans |
Provides model implementations that allow access to arbitrary Java objects.
|
freemarker.ext.dom | |
freemarker.ext.jdom | |
freemarker.ext.jsp |
Classes for two-way FreeMarker-JSP integration.
|
freemarker.ext.jython |
Provides model implementations that allow access to arbitrary
Jython objects.
|
freemarker.ext.rhino |
Rhino (ECMAScript) support
|
freemarker.ext.servlet |
Provides a generic purpose servlet that generates dynamic response using
FreeMarker.
|
freemarker.template |
This package contains the core API's that most users will use.
|
freemarker.template.utility |
Utility classes that may be used to customize aspects of FreeMarker.
|
Modifier and Type | Class and Description |
---|---|
class |
Environment.Namespace |
Modifier and Type | Method and Description |
---|---|
TemplateHashModel |
Environment.getDataModel() |
TemplateHashModel |
Environment.getGlobalVariables()
Returns the read-only hash of globally visible variables.
|
Constructor and Description |
---|
Environment(Template template,
TemplateHashModel rootDataModel,
java.io.Writer out) |
Modifier and Type | Class and Description |
---|---|
class |
ArrayModel
A class that will wrap an arbitrary array into
TemplateCollectionModel
and TemplateSequenceModel interfaces. |
class |
BeanModel
A class that will wrap an arbitrary object into
TemplateHashModel
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 of
Boolean into a
TemplateBooleanModel . |
class |
CollectionModel
A special case of
BeanModel that can wrap Java collections
and that implements the TemplateCollectionModel in order to be usable
in a <foreach> block. |
class |
DateModel
Wraps arbitrary subclass of
Date into a reflective model. |
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. |
class |
MapModel
A special case of
BeanModel that adds implementation
for TemplateMethodModelEx on map objects that is a shortcut for the
Map.get() method. |
class |
NumberModel
Wraps arbitrary subclass of
Number into a reflective model. |
class |
ResourceBundleModel
A hash model that wraps a resource bundle.
|
class |
SimpleMapModel
Model used by
BeansWrapper when simpleMapWrapper
mode is enabled. |
class |
StringModel
Subclass of
BeanModel that exposes the return value of the Object.toString() method through the TemplateScalarModel
interface. |
Modifier and Type | Method and Description |
---|---|
TemplateHashModel |
BeansWrapper.getEnumModels()
Returns a hash model that represents the so-called class enum models.
|
TemplateHashModel |
BeansWrapper.getStaticModels()
Returns a hash model that represents the so-called class static models.
|
Modifier and Type | Class and Description |
---|---|
class |
NodeModel
A base class for wrapping a W3C DOM Node as a FreeMarker template model.
|
Modifier and Type | Class and Description |
---|---|
class |
NodeListModel
Deprecated.
Use
NodeModel instead. |
Modifier and Type | Class and Description |
---|---|
class |
TaglibFactory
A hash model associated with a servlet context that can load JSP tag
libraries associated with that servlet context.
|
Modifier and Type | Class and Description |
---|---|
class |
JythonHashModel
Model for Jython dictionaries (
PyDictionary
and PyStringMap ). |
class |
JythonModel
Generic model for arbitrary Jython objects.
|
class |
JythonNumberModel
Model for Jython numeric objects (
PyInteger , PyLong ,
PyFloat ). |
class |
JythonSequenceModel
Model for Jython sequence objects (
PySequence descendants). |
Modifier and Type | Class and Description |
---|---|
class |
RhinoFunctionModel |
class |
RhinoScriptableModel |
Modifier and Type | Class and Description |
---|---|
class |
AllHttpScopesHashModel
An extension of SimpleHash that looks up keys in the hash, then in the
request, session, and servlet context scopes.
|
class |
HttpRequestHashModel
TemplateHashModel wrapper for a HttpServletRequest attributes.
|
class |
HttpRequestParametersHashModel
TemplateHashModel wrapper for a HttpServletRequest parameters.
|
class |
HttpSessionHashModel
TemplateHashModel wrapper for a HttpSession attributes.
|
class |
ServletContextHashModel
TemplateHashModel wrapper for a ServletContext attributes.
|
Modifier and Type | Interface and Description |
---|---|
interface |
TemplateHashModelEx
An extended hash interface with a couple of extra hooks.
|
Modifier and Type | Class and Description |
---|---|
class |
SimpleHash
A simple implementation of the TemplateHashModelEx
interface, using an underlying
Map or SortedMap . |
Modifier and Type | Class and Description |
---|---|
class |
DOMNodeModel
A convenient wrapper class for wrapping a Node in the W3C DOM API.
|