A base class for containers that wrap arbitrary Java objects into
TemplateModel instances.
version: $Id: WrappingTemplateModel.java,v 1.18.2.1 2005/12/07 00:41:23 revusky Exp $
Constructor Summary
protected
WrappingTemplateModel() Protected constructor that creates a new wrapping template model using
the default object wrapper.
protected
WrappingTemplateModel(ObjectWrapper objectWrapper) Protected constructor that creates a new wrapping template model using
the specified object wrapper.
Parameters: objectWrapper - the wrapper to use.
getDefaultObjectWrapper() Returns the default object wrapper that is used when a wrapping template
model is constructed without being passed an explicit object wrapper.
getObjectWrapper() Returns the object wrapper instance used by this wrapping template model.
public static void
setDefaultObjectWrapper(ObjectWrapper objectWrapper) Sets the default object wrapper that is used when a wrapping template
model is constructed without being passed an explicit object wrapper.
Protected constructor that creates a new wrapping template model using
the specified object wrapper.
Parameters: objectWrapper - the wrapper to use. If null is passed, the defaultobject wrapper is used.
Wraps the passed object into a template model using this object's object
wrapper.
Parameters: obj - the object to wrap the template model that wraps the object throws: TemplateModelException - if the wrapper does not know how towrap the passed object.