freemarker.ext.rhino
Class RhinoWrapper

java.lang.Object
  extended by freemarker.ext.beans.BeansWrapper
      extended by freemarker.ext.rhino.RhinoWrapper
All Implemented Interfaces:
ObjectWrapper

public class RhinoWrapper
extends BeansWrapper

Experimental: no backward compatibility guarantees; any feedback is highly welcome!

Version:
$Id: RhinoWrapper.java,v 1.2 2005/06/22 10:52:52 ddekany Exp $
Author:
Attila Szegedi

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
 
Constructor Summary
RhinoWrapper()
           
 
Method Summary
 TemplateModel wrap(java.lang.Object obj)
          Wraps the object with a template model that is most specific for the object's class.
 
Methods inherited from class freemarker.ext.beans.BeansWrapper
coerceBigDecimals, create, getDefaultDateType, getDefaultInstance, getInstance, getOuterIdentity, getStaticModels, isSimpleMapWrapper, isStrict, newInstance, setDefaultDateType, setExposureLevel, setMethodsShadowItems, setNullModel, setOuterIdentity, setSimpleMapWrapper, setStrict, setUseCache, unwrap, unwrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RhinoWrapper

public RhinoWrapper()
Method Detail

wrap

public TemplateModel wrap(java.lang.Object obj)
                   throws TemplateModelException
Description copied from class: BeansWrapper
Wraps the object with a template model that is most specific for the object's class. Specifically:

Specified by:
wrap in interface ObjectWrapper
Overrides:
wrap in class BeansWrapper
Returns:
a TemplateModel wrapper of the object passed in.
Throws:
TemplateModelException