FriendlyMapModel

org.beangle.template.freemarker.FriendlyMapModel
class FriendlyMapModel(map: Map[_, _], wrapper: BeansWrapper) extends MapModel, TemplateHashModelEx, TemplateMethodModelEx, AdapterTemplateModel

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.

Attributes

Graph
Supertypes
class MapModel
trait TemplateMethodModelEx
trait TemplateMethodModel
class StringModel
trait TemplateScalarModel
class BeanModel
trait TemplateModelWithAPISupport
trait WrapperTemplateModel
trait AdapterTemplateModel
trait TemplateHashModelEx
trait TemplateHashModel
trait TemplateModel
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def isEmpty: Boolean

Attributes

Definition Classes
MapModel -> BeanModel -> TemplateHashModel
override def values(): TemplateCollectionModel

Attributes

Definition Classes
BeanModel -> TemplateHashModelEx

Inherited methods

def exec(x$0: List[_]): <FromJavaObject>

Attributes

Inherited from:
MapModel
def get(x$0: String): TemplateModel

Attributes

Inherited from:
BeanModel
def getAPI(): TemplateModel

Attributes

Inherited from:
BeanModel
def getAdaptedObject(x$0: Class[_ <: <FromJavaObject>]): <FromJavaObject>

Attributes

Inherited from:
BeanModel
def getAsString(): String

Attributes

Inherited from:
StringModel
def getWrappedObject(): <FromJavaObject>

Attributes

Inherited from:
BeanModel
def keys(): TemplateCollectionModel

Attributes

Inherited from:
BeanModel
def size(): Int

Attributes

Inherited from:
MapModel
def toString(): String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Inherited from:
BeanModel