Class WrappingTemplateModel

java.lang.Object
freemarker.template.WrappingTemplateModel
Direct Known Subclasses:
DefaultArrayAdapter, DefaultEnumerationAdapter, DefaultIterableAdapter, DefaultIteratorAdapter, DefaultListAdapter, DefaultMapAdapter, DefaultNonListCollectionAdapter, SimpleCollection, SimpleHash, SimpleMapModel, SimpleSequence

public abstract class WrappingTemplateModel extends Object
Convenience base-class for containers that wrap their contained arbitrary Java objects into TemplateModel instances.
  • Constructor Details

    • WrappingTemplateModel

      @Deprecated protected WrappingTemplateModel()
      Deprecated.
      Use WrappingTemplateModel(ObjectWrapper) instead; this method uses the deprecated.
      Protected constructor that creates a new wrapping template model using the default object wrapper.
    • WrappingTemplateModel

      protected WrappingTemplateModel(ObjectWrapper objectWrapper)
      Protected constructor that creates a new wrapping template model using the specified object wrapper.
      Parameters:
      objectWrapper - the wrapper to use. Passing null to it is allowed but deprecated. If null is passed, the deprecated default object wrapper is used.
  • Method Details