Class MapCreator

  • All Implemented Interfaces:
    Serializable, Cloneable, Map<String,​Object>, org.apache.sling.scripting.sightly.pojo.Use

    public class MapCreator
    extends HashMap<String,​Object>
    implements org.apache.sling.scripting.sightly.pojo.Use
    HTL Helper that creates a map (this object itself), e.g. for setting attributes in a data-sly-include / data-sly-resource argument requestAttributes. The values are given as parameters key and value or an arbitrary number key1, key2, key3 ... and corresponding value1, value2, value3, ... parameters to set the values in that scope.
    Since:
    09/2017
    Author:
    Hans-Peter Stoerr
    See Also:
    Serialized Form
    • Field Detail

      • KEYPATTERN

        protected static final Pattern KEYPATTERN
    • Constructor Detail

      • MapCreator

        public MapCreator()
    • Method Detail

      • init

        public void init​(Bindings bindings)
        Specified by:
        init in interface org.apache.sling.scripting.sightly.pojo.Use