ClassBasedModelFactory | Base class for hash models keyed by Java class names. | code | html |
OverloadedMethod | code | html |
ArrayModel | A class that will wrap an arbitrary array into TemplateCollectionModel and TemplateSequenceModel interfaces. |
code | html |
ArrayModel.Iterator | code | html | |
BeanModel | A class that will wrap an arbitrary object into freemarker.template.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. | code | html |
BeansModelCache | code | html | |
BeansWrapper | Utility class that provides generic services to reflection classes. | code | html |
BeansWrapper.MethodSignature | code | html | |
BooleanModel | A class that will wrap instances of java.lang.Boolean into a TemplateBooleanModel . |
code | html |
ClassString | code | html | |
CollectionAdapter | code | html | |
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. |
code | html |
DateModel | Wraps arbitrary subclass of java.util.Date into a reflective model. | code | html |
EnumModels | code | html | |
EnumerationModel | A class that adds TemplateModelIterator functionality to the Enumeration interface implementers. |
code | html |
HashAdapter | code | html | |
InvalidPropertyException | An exception thrown when there is an attempt to access an invalid bean property when we are in a "strict bean" mode | code | html |
IteratorModel | A class that adds TemplateModelIterator functionality to the Iterator interface implementers. |
code | html |
MapModel | A special case of BeanModel that adds implementation for TemplateMethodModelEx on map objects that is a shortcut for the Map.get() method. |
code | html |
MemberAndArguments | code | html | |
MethodMap | code | html | |
MethodUtilities | code | html | |
NumberModel | Wraps arbitrary subclass of java.lang.Number into a reflective model. | code | html |
OverloadedFixArgMethod | code | html | |
OverloadedMethodModel | A class that will wrap a reflected method call into a freemarker.template.TemplateMethodModel interface. | code | html |
OverloadedVarArgMethod | code | html | |
OverloadedVarArgMethod.ArgumentPacker | code | html | |
ResourceBundleModel | A hash model that wraps a resource bundle. |
code | html |
SequenceAdapter | code | html | |
SetAdapter | code | html | |
SimpleMapModel | Model used by BeansWrapper when simpleMapWrapper mode is enabled. | code | html |
SimpleMemberModel | This class is used for constructors and as a base for non-overloaded methods | code | html |
SimpleMethodModel | A class that will wrap a reflected method call into a freemarker.template.TemplateMethodModel interface. | code | html |
StaticModel | Wraps the static fields and methods of a class in a freemarker.template.TemplateHashModel . | code | html |
StaticModels | Utility class for instantiating StaticModel instances from templates. | code | html |
StringModel | Subclass of BeanModel that exposes the return value of the java.lang.Object#toString() method through the TemplateScalarModel interface. | code | html |
Provides model implementations that allow access to arbitrary Java objects.
Most of the issues dealing with beans are handled by the freemarker.ext.beans.BeansWrapper#wrap(Object) and freemarker.ext.beans.BeansWrapper#getStaticModels() methods. In normal cases, these are the only methods you should use to turn an arbitrary Java object into a FreeMarker freemarker.template.TemplateModel . Additionally, you can manually create instance of any wrapper class using its constructors. Note, however that in such cases you bypass the eventual model caching of the wrapper.