Save This Page
Home » struts-2.1.8.1-src » org.apache » struts2 » views » freemarker » [javadoc | source]
org.apache.struts2.views.freemarker
static final class: StrutsBeanWrapper.FriendlyMapModel [javadoc | source]
java.lang.Object
   freemarker.ext.beans.MapModel
      org.apache.struts2.views.freemarker.StrutsBeanWrapper$FriendlyMapModel

All Implemented Interfaces:
    freemarker.template.TemplateHashModelEx

Attempting to get the best of both worlds of FM's MapModel and SimpleMapModel, by reimplementing the isEmpty(), keySet() and values() methods. ?keys and ?values built-ins are thus available, just as well as plain Map methods.
Field Summary
static final  ModelFactory FACTORY     
Constructor:
 public FriendlyMapModel(Map map,
    BeansWrapper wrapper) 
Method from org.apache.struts2.views.freemarker.StrutsBeanWrapper$FriendlyMapModel Summary:
isEmpty,   keySet,   values
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.struts2.views.freemarker.StrutsBeanWrapper$FriendlyMapModel Detail:
 public boolean isEmpty() 
 protected Set keySet() 
 public TemplateCollectionModel values()