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.rhino |
Exposes Rhino (ECMAScript) objects to templates.
|
freemarker.template |
The fundamental, most commonly used API-s of FreeMarker;
start with
Configuration (also see
Getting Stared in the Manual.) |
Modifier and Type | Field and Description |
---|---|
protected BeansWrapper |
BeanModel.wrapper |
Modifier and Type | Method and Description |
---|---|
static BeansWrapper |
BeansWrapper.getDefaultInstance()
Returns the default instance of the wrapper.
|
Constructor and Description |
---|
ArrayModel(java.lang.Object array,
BeansWrapper wrapper)
Creates a new model that wraps the specified array object.
|
BeanModel(java.lang.Object object,
BeansWrapper wrapper)
Creates a new model that wraps the specified object.
|
BooleanModel(java.lang.Boolean bool,
BeansWrapper wrapper) |
CollectionModel(java.util.Collection collection,
BeansWrapper wrapper)
Creates a new model that wraps the specified collection object.
|
DateModel(java.util.Date date,
BeansWrapper wrapper)
Creates a new model that wraps the specified date object.
|
EnumerationModel(java.util.Enumeration enumeration,
BeansWrapper wrapper)
Creates a new model that wraps the specified enumeration object.
|
IteratorModel(java.util.Iterator iterator,
BeansWrapper wrapper)
Creates a new model that wraps the specified iterator object.
|
MapModel(java.util.Map map,
BeansWrapper wrapper)
Creates a new model that wraps the specified map object.
|
NumberModel(java.lang.Number number,
BeansWrapper wrapper)
Creates a new model that wraps the specified number object.
|
ResourceBundleModel(java.util.ResourceBundle bundle,
BeansWrapper wrapper) |
SimpleMapModel(java.util.Map map,
BeansWrapper wrapper) |
StringModel(java.lang.Object object,
BeansWrapper wrapper)
Creates a new model that wraps the specified object with BeanModel + scalar
functionality.
|
Modifier and Type | Class and Description |
---|---|
class |
RhinoWrapper |
Constructor and Description |
---|
RhinoFunctionModel(org.mozilla.javascript.Function function,
org.mozilla.javascript.Scriptable fnThis,
BeansWrapper wrapper) |
RhinoScriptableModel(org.mozilla.javascript.Scriptable scriptable,
BeansWrapper wrapper) |
Modifier and Type | Class and Description |
---|---|
class |
DefaultObjectWrapper
The default implementation of the ObjectWrapper
interface.
|
class |
SimpleObjectWrapper
The default implementation of the ObjectWrapper interface.
|