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 Summary
Modifier and TypeMethodDescriptionboolean
default boolean
freemarker.template.TemplateModel
wrap
(Object object, TemplateDefaultObjectWrapper defaultObjectWrapper)
-
Method Details
-
wrap
freemarker.template.TemplateModel wrap(Object object, TemplateDefaultObjectWrapper defaultObjectWrapper) throws freemarker.template.TemplateModelException - Throws:
freemarker.template.TemplateModelException
-
canWrap
- Returns:
- true if this implementation can wrap the provided object
-
useInDefaultObjectWrapper
default boolean useInDefaultObjectWrapper()
-