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

Version:
$Id: RhinoWrapper.java,v 1.2.2.1 2006/07/31 11:34:52 szegedia Exp $
Author:
Attila Szegedi

Field Summary
 
Fields inherited from class freemarker.ext.beans.BeansWrapper
CAN_NOT_UNWRAP, 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
protected  ModelFactory getModelFactory(java.lang.Class clazz)
           
 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
coerceBigDecimal, coerceBigDecimals, coerceBigDecimals, getDefaultDateType, getDefaultInstance, getEnumModels, getInstance, getOuterIdentity, getStaticModels, isExposeFields, isSimpleMapWrapper, isStrict, newInstance, setDefaultDateType, setExposeFields, 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

getModelFactory

protected ModelFactory getModelFactory(java.lang.Class clazz)
Overrides:
getModelFactory in class BeansWrapper