Interface TemplateObjectWrapper

All Known Implementing Classes:
BinaryObjectWrapper, BooleanObjectWrapper, DateTimeObjectWrapper, DurationObjectWrapper, EntityListObjectWrapper, EntityObjectWrapper, LocalDateObjectWrapper, LocalTimeObjectWrapper, NullEntityObjectWrapper, NumericObjectWrapper, PhoneObjectWrapper, PrivilegedEntityObjectWrapper, StringObjectWrapper, TypedValueWrapper

public interface TemplateObjectWrapper
Interface for Object Wrappers used in freemarker. An implementation usually wraps only one type of objects.
  • Method Details

    • wrap

      freemarker.template.TemplateModel wrap(Object object, TemplateDefaultObjectWrapper defaultObjectWrapper) throws freemarker.template.TemplateModelException
      Throws:
      freemarker.template.TemplateModelException
    • canWrap

      boolean canWrap(Object object)
      Returns:
      true if this implementation can wrap the provided object
    • useInDefaultObjectWrapper

      default boolean useInDefaultObjectWrapper()