Package freemarker.template
This package contains the core API's that most users will use.
AdapterTemplateModel | Supplemental interface that can be implemented by classes that also implement
any of the TemplateModel interfaces. |
ObjectWrapper | An object that knows how to "wrap" a java object
as a TemplateModel instance. |
TemplateBooleanModel | Objects that will be interpreted as true/false in the appropriate
context must implement this interface. |
TemplateCollectionModel | This interface can be implemented by a class to make a variable "foreach-able",
i.e. |
TemplateDateModel | Date values in a template data model must implement this interface. |
TemplateExceptionHandler | An API for objects that handle exceptions that are thrown during
template rendering. |
TemplateHashModel | Hashes in a data model must implement this interface. |
TemplateHashModelEx | An extended hash interface with a couple of extra hooks. |
TemplateMethodModel | Objects that act as methods in a template data model must implement this
interface. |
TemplateMethodModelEx | A subinterface of TemplateMethodModel that acts on models, rather
than on strings. |
TemplateModel | This is a marker interface that indicates that an object
can be put in a template's data model. |
TemplateModelAdapter | Implemented by classes that serve as adapters for template model objects in
some other object model. |
TemplateModelIterator | This interface is used to iterate over a set of template models, and is usually
returned from an instance of TemplateCollectionModel . |
TemplateNodeModel | Describes objects that are nodes in a tree. |
TemplateNumberModel | Numeric values in a template data model must implement this interface. |
TemplateScalarModel | String values in a template data model must implement this interface. |
TemplateSequenceModel | List values in a template data model whose elements are accessed by the
index operator should implement this interface. |
TemplateTransformModel | Objects that implement this interface can be used in a <transform>
block to perform arbitrary transformations on a part of the template
processing output. |
TransformControl | An interface that can be implemented by writers returned from
TemplateTransformModel.getWriter(java.io.Writer, java.util.Map) . |
This package contains the core API's that most users will use.
The typical usage pattern is to be vended
Template
objects by the
Configuration
object.
The
Template class represents a template file compiled into an efficient
data structure for later use. Processing of compiled templates is very fast.
For complete instructions on how to use this package, please see
the
manual.