Class MapModel

    • Constructor Detail

      • MapModel

        public MapModel​(Map map,
                        BeansWrapper wrapper)
        Creates a new model that wraps the specified map object.
        Parameters:
        map - the map object to wrap into a model.
        wrapper - the BeansWrapper associated with this model. Every model has to have an associated BeansWrapper instance. The model gains many attributes from its wrapper, including the caching behavior, method exposure level, method-over-item shadowing policy etc.
    • Method Detail

      • isEmpty

        public boolean isEmpty()
        Description copied from class: BeanModel
        Tells whether the model is empty. It is empty if either the wrapped object is null, or it's a Boolean with false value.
        Specified by:
        isEmpty in interface TemplateHashModel
        Overrides:
        isEmpty in class BeanModel
      • keySet

        protected Set keySet()
        Description copied from class: BeanModel
        Helper method to support TemplateHashModelEx. Returns the Set of Strings which are available via the TemplateHashModel interface. Subclasses that override invokeGenericGet to provide additional hash keys should also override this method.
        Overrides:
        keySet in class BeanModel