|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfreemarker.ext.beans.BeansWrapper
freemarker.ext.rhino.RhinoWrapper
public class RhinoWrapper
Experimental: no backward compatibility guarantees; any feedback is highly welcome!
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 |
---|
public RhinoWrapper()
Method Detail |
---|
public TemplateModel wrap(java.lang.Object obj) throws TemplateModelException
BeansWrapper
null model
,NumberModel
for it,DateModel
for it,TemplateBooleanModel.TRUE
or
TemplateBooleanModel.FALSE
ArrayModel
for it
MapModel
for it
CollectionModel
for it
IteratorModel
for it
EnumerationModel
for it
StringModel
for it
BeanModel
for it.
wrap
in interface ObjectWrapper
wrap
in class BeansWrapper
TemplateModelException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |