Package org.apache.ofbiz.base.util
Class UtilCodec.HtmlEncodingMapWrapper<K>
java.lang.Object
org.apache.ofbiz.base.util.UtilCodec.HtmlEncodingMapWrapper<K>
- Enclosing class:
- UtilCodec
A simple Map wrapper class that will do HTML encoding.
To be used for passing a Map to something that will expand Strings with it as a context, etc.
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
boolean
containsKey
(Object key) boolean
containsValue
(Object value) entrySet()
static <K> UtilCodec.HtmlEncodingMapWrapper<K>
getHtmlEncodingMapWrapper
(Map<K, Object> mapToWrap, UtilCodec.SimpleEncoder encoder) boolean
isEmpty()
keySet()
void
void
reset()
Reset.void
setup
(Map<K, Object> mapToWrap, UtilCodec.SimpleEncoder encoder) Sets .int
size()
toString()
values()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
HtmlEncodingMapWrapper
protected HtmlEncodingMapWrapper()
-
-
Method Details
-
getHtmlEncodingMapWrapper
public static <K> UtilCodec.HtmlEncodingMapWrapper<K> getHtmlEncodingMapWrapper(Map<K, Object> mapToWrap, UtilCodec.SimpleEncoder encoder) -
setup
Sets .- Parameters:
mapToWrap
- the map to wrapencoder
- the encoder
-
reset
public void reset()Reset. -
size
public int size() -
isEmpty
public boolean isEmpty() -
containsKey
- Specified by:
containsKey
in interfaceMap<K,
Object>
-
containsValue
- Specified by:
containsValue
in interfaceMap<K,
Object>
-
get
-
put
-
remove
-
putAll
-
clear
public void clear() -
keySet
-
values
-
entrySet
-
toString
-