|
||||||||||
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
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 |
---|
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
protected ModelFactory getModelFactory(java.lang.Class clazz)
getModelFactory
in class BeansWrapper
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |