Class DocumentObjectWrapper

  • All Implemented Interfaces:
    freemarker.template.ObjectWrapper, freemarker.template.ObjectWrapperAndUnwrapper, freemarker.template.utility.ObjectWrapperWithAPISupport, freemarker.template.utility.RichObjectWrapper, freemarker.template.utility.WriteProtectable

    public class DocumentObjectWrapper
    extends freemarker.template.DefaultObjectWrapper
    Author:
    Bogdan Stefanescu
    • Nested Class Summary

      • Nested classes/interfaces inherited from class freemarker.ext.beans.BeansWrapper

        freemarker.ext.beans.BeansWrapper.MethodAppearanceDecision, freemarker.ext.beans.BeansWrapper.MethodAppearanceDecisionInput
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected FreemarkerEngine engine  
      • Fields inherited from class freemarker.ext.beans.BeansWrapper

        EXPOSE_ALL, EXPOSE_NOTHING, EXPOSE_PROPERTIES_ONLY, EXPOSE_SAFE
      • Fields inherited from interface freemarker.template.ObjectWrapper

        BEANS_WRAPPER, DEFAULT_WRAPPER, SIMPLE_WRAPPER
      • Fields inherited from interface freemarker.template.ObjectWrapperAndUnwrapper

        CANT_UNWRAP_TO_TARGET_CLASS
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      freemarker.template.TemplateModel wrap​(Object obj)  
      • Methods inherited from class freemarker.template.DefaultObjectWrapper

        convertArray, getForceLegacyNonListCollections, getIterableSupport, getUseAdaptersForContainers, handleUnknownType, normalizeIncompatibleImprovementsVersion, setForceLegacyNonListCollections, setIterableSupport, setUseAdaptersForContainers, toPropertiesString, wrapDomNode
      • Methods inherited from class freemarker.ext.beans.BeansWrapper

        checkModifiable, clearClassIntrospecitonCache, clearClassIntrospectionCache, coerceBigDecimal, coerceBigDecimals, coerceBigDecimals, finalizeConstruction, finetuneMethodAppearance, getDefaultDateType, getDefaultInstance, getEnumModels, getExposureLevel, getIncompatibleImprovements, getInstance, getMemberAccessPolicy, getMethodAppearanceFineTuner, getModelFactory, getOuterIdentity, getPreferIndexedReadMethod, getStaticModels, getTreatDefaultMethodsAsBeanMembers, getUseCache, invokeMethod, isClassIntrospectionCacheRestricted, isExposeFields, isSimpleMapWrapper, isStrict, isWriteProtected, newInstance, readField, removeFromClassIntrospectionCache, setDefaultDateType, setExposeFields, setExposureLevel, setMemberAccessPolicy, setMethodAppearanceFineTuner, setMethodsShadowItems, setNullModel, setOuterIdentity, setPreferIndexedReadMethod, setSimpleMapWrapper, setStrict, setTreatDefaultMethodsAsBeanMembers, setUseCache, toString, tryUnwrapTo, unwrap, unwrap, wrap, wrapAsAPI, writeProtect
    • Constructor Detail

      • DocumentObjectWrapper

        public DocumentObjectWrapper​(FreemarkerEngine engine)
    • Method Detail

      • wrap

        public final freemarker.template.TemplateModel wrap​(Object obj)
                                                     throws freemarker.template.TemplateModelException
        Specified by:
        wrap in interface freemarker.template.ObjectWrapper
        Overrides:
        wrap in class freemarker.template.DefaultObjectWrapper
        Throws:
        freemarker.template.TemplateModelException