org.apache.struts2.views.freemarker
类 StrutsBeanWrapper

java.lang.Object
  继承者 freemarker.ext.beans.BeansWrapper
      继承者 org.apache.struts2.views.freemarker.StrutsBeanWrapper
所有已实现的接口:
freemarker.template.ObjectWrapper

public class StrutsBeanWrapper
extends freemarker.ext.beans.BeansWrapper

The StrutsBeanWrapper extends the default FreeMarker BeansWrapper and provides almost no change in functionality, except for how it handles maps. Normally, FreeMarker has two modes of operation: either support for friendly map built-ins (?keys, ?values, etc) but only support for String keys; OR no special built-in support (ie: ?keys returns the methods on the map instead of the keys) but support for String and non-String keys alike. Struts provides an alternative implementation that gives us the best of both worlds.

It is possible that this special behavior may be confusing or can cause problems. Therefore, you can set the struts.freemarker.wrapper.altMap property in struts.properties to false, allowing the normal BeansWrapper logic to take place instead.


嵌套类摘要
 
从类 freemarker.ext.beans.BeansWrapper 继承的嵌套类/接口
freemarker.ext.beans.BeansWrapper.MethodAppearanceDecision
 
字段摘要
 
从类 freemarker.ext.beans.BeansWrapper 继承的字段
EXPOSE_ALL, EXPOSE_NOTHING, EXPOSE_PROPERTIES_ONLY, EXPOSE_SAFE
 
从接口 freemarker.template.ObjectWrapper 继承的字段
BEANS_WRAPPER, DEFAULT_WRAPPER, SIMPLE_WRAPPER
 
构造方法摘要
StrutsBeanWrapper(boolean altMapWrapper)
           
 
方法摘要
 
从类 freemarker.ext.beans.BeansWrapper 继承的方法
coerceBigDecimal, coerceBigDecimals, coerceBigDecimals, getDefaultInstance, getEnumModels, getOuterIdentity, getStaticModels, isExposeFields, isSimpleMapWrapper, isStrict, newInstance, setDefaultDateType, setExposeFields, setExposureLevel, setMethodsShadowItems, setNullModel, setOuterIdentity, setSimpleMapWrapper, setStrict, setUseCache, unwrap, unwrap, wrap
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

StrutsBeanWrapper

public StrutsBeanWrapper(boolean altMapWrapper)