public class FreemarkerObjectWrapper
extends freemarker.template.DefaultObjectWrapper
This class allows Joda-Beans to be used in the Freemarker templating system.
When creating a Freemarker Configuration, simply set call
setObjectWrapper(ObjectWrapper) with an instance of this class.
EXPOSE_ALL, EXPOSE_NOTHING, EXPOSE_PROPERTIES_ONLY, EXPOSE_SAFE| Constructor and Description |
|---|
FreemarkerObjectWrapper()
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
String |
toString() |
freemarker.template.TemplateModel |
wrap(Object obj)
Overrides to trap instances of
Bean and handle them. |
convertArray, getForceLegacyNonListCollections, getUseAdaptersForContainers, handleUnknownType, normalizeIncompatibleImprovementsVersion, setForceLegacyNonListCollections, setUseAdaptersForContainers, toPropertiesString, wrapDomNodecheckModifiable, clearClassIntrospecitonCache, coerceBigDecimal, coerceBigDecimals, coerceBigDecimals, finalizeConstruction, finetuneMethodAppearance, getDefaultDateType, getDefaultInstance, getEnumModels, getExposureLevel, getIncompatibleImprovements, getInstance, getMethodAppearanceFineTuner, getModelFactory, getOuterIdentity, getStaticModels, getUseCache, isClassIntrospectionCacheRestricted, isExposeFields, isSimpleMapWrapper, isStrict, isWriteProtected, newInstance, removeFromClassIntrospectionCache, setDefaultDateType, setExposeFields, setExposureLevel, setMethodAppearanceFineTuner, setMethodsShadowItems, setNullModel, setOuterIdentity, setSimpleMapWrapper, setStrict, setUseCache, tryUnwrapTo, unwrap, unwrap, wrap, wrapAsAPI, writeProtectpublic freemarker.template.TemplateModel wrap(Object obj) throws freemarker.template.TemplateModelException
Bean and handle them.wrap in interface freemarker.template.ObjectWrapperwrap in class freemarker.template.DefaultObjectWrapperobj - the object to wrap, not nullfreemarker.template.TemplateModelException - if unable to create the modelpublic String toString()
toString in class freemarker.ext.beans.BeansWrapperCopyright © 2007–2017 Joda.org. All rights reserved.