freemarker.template

Class SimpleObjectWrapper

Implemented Interfaces:
ObjectWrapper

public class SimpleObjectWrapper
extends DefaultObjectWrapper

The default implementation of the ObjectWrapper interface.
Version:
$Id: SimpleObjectWrapper.java,v 1.24 2003/05/30 16:29:44 szegedia Exp $

Field Summary

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

Method Summary

protected TemplateModel
handleUnknownType(Object obj)
Called if a type other than the simple ones we know about is passed in.

Methods inherited from class freemarker.template.DefaultObjectWrapper

convertArray, handleUnknownType, wrap, wrapDomNode

Methods inherited from class freemarker.ext.beans.BeansWrapper

coerceBigDecimals, create, getDefaultDateType, getDefaultInstance, getEnumModels, getInstance, getOuterIdentity, getStaticModels, isExposeFields, isSimpleMapWrapper, isStrict, newInstance, setDefaultDateType, setExposeFields, setExposureLevel, setMethodsShadowItems, setNullModel, setOuterIdentity, setSimpleMapWrapper, setStrict, setUseCache, unwrap, unwrap, wrap

Method Details

handleUnknownType

protected TemplateModel handleUnknownType(Object obj)
            throws TemplateModelException
Called if a type other than the simple ones we know about is passed in. In this implementation, this just throws an exception.
Overrides:
handleUnknownType in interface DefaultObjectWrapper