Package com.composum.platform.htl
Class MapCreator
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<String,Object>
-
- com.composum.platform.htl.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 parameterskey
andvalue
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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description protected static Pattern
KEYPATTERN
-
Constructor Summary
Constructors Constructor Description MapCreator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
init(Bindings bindings)
-
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
-