Class StringModel

java.lang.Object
freemarker.ext.beans.BeanModel
freemarker.ext.beans.StringModel
All Implemented Interfaces:
WrapperTemplateModel, AdapterTemplateModel, TemplateHashModel, TemplateHashModelEx, TemplateModel, TemplateModelWithAPISupport, TemplateScalarModel
Direct Known Subclasses:
CollectionModel, GenericObjectModel, MapModel

@Deprecated public class StringModel extends BeanModel implements TemplateScalarModel
Deprecated.
Subclass of BeanModel that exposes the return value of the Object.toString() method through the TemplateScalarModel interface.
  • Constructor Details

    • StringModel

      public StringModel(Object object, BeansWrapper wrapper)
      Deprecated.
      Creates a new model that wraps the specified object with BeanModel + scalar functionality.
      Parameters:
      object - the object to wrap into a model.
      wrapper - the BeansWrapper associated with this model. Every model has to have an associated BeansWrapper instance. The model gains many attributes from its wrapper, including the caching behavior, method exposure level, method-over-item shadowing policy etc.
  • Method Details