Package org.apache.ofbiz.base.util
Class UtilCodec.HtmlEncodingMapWrapper<K>
- java.lang.Object
-
- org.apache.ofbiz.base.util.UtilCodec.HtmlEncodingMapWrapper<K>
-
- All Implemented Interfaces:
java.util.Map<K,java.lang.Object>
- Enclosing class:
- UtilCodec
public static class UtilCodec.HtmlEncodingMapWrapper<K> extends java.lang.Object implements java.util.Map<K,java.lang.Object>
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.
-
-
Field Summary
Fields Modifier and Type Field Description protected UtilCodec.SimpleEncoder
encoder
protected java.util.Map<K,java.lang.Object>
internalMap
-
Constructor Summary
Constructors Modifier Constructor Description protected
HtmlEncodingMapWrapper()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
boolean
containsKey(java.lang.Object key)
boolean
containsValue(java.lang.Object value)
java.util.Set<java.util.Map.Entry<K,java.lang.Object>>
entrySet()
java.lang.Object
get(java.lang.Object key)
static <K> UtilCodec.HtmlEncodingMapWrapper<K>
getHtmlEncodingMapWrapper(java.util.Map<K,java.lang.Object> mapToWrap, UtilCodec.SimpleEncoder encoder)
boolean
isEmpty()
java.util.Set<K>
keySet()
java.lang.Object
put(K key, java.lang.Object value)
void
putAll(java.util.Map<? extends K,? extends java.lang.Object> arg0)
java.lang.Object
remove(java.lang.Object key)
void
reset()
void
setup(java.util.Map<K,java.lang.Object> mapToWrap, UtilCodec.SimpleEncoder encoder)
int
size()
java.lang.String
toString()
java.util.Collection<java.lang.Object>
values()
-
-
-
Field Detail
-
internalMap
protected java.util.Map<K,java.lang.Object> internalMap
-
encoder
protected UtilCodec.SimpleEncoder encoder
-
-
Method Detail
-
getHtmlEncodingMapWrapper
public static <K> UtilCodec.HtmlEncodingMapWrapper<K> getHtmlEncodingMapWrapper(java.util.Map<K,java.lang.Object> mapToWrap, UtilCodec.SimpleEncoder encoder)
-
setup
public void setup(java.util.Map<K,java.lang.Object> mapToWrap, UtilCodec.SimpleEncoder encoder)
-
reset
public void reset()
-
size
public int size()
- Specified by:
size
in interfacejava.util.Map<K,java.lang.Object>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfacejava.util.Map<K,java.lang.Object>
-
containsKey
public boolean containsKey(java.lang.Object key)
- Specified by:
containsKey
in interfacejava.util.Map<K,java.lang.Object>
-
containsValue
public boolean containsValue(java.lang.Object value)
- Specified by:
containsValue
in interfacejava.util.Map<K,java.lang.Object>
-
get
public java.lang.Object get(java.lang.Object key)
- Specified by:
get
in interfacejava.util.Map<K,java.lang.Object>
-
put
public java.lang.Object put(K key, java.lang.Object value)
- Specified by:
put
in interfacejava.util.Map<K,java.lang.Object>
-
remove
public java.lang.Object remove(java.lang.Object key)
- Specified by:
remove
in interfacejava.util.Map<K,java.lang.Object>
-
putAll
public void putAll(java.util.Map<? extends K,? extends java.lang.Object> arg0)
- Specified by:
putAll
in interfacejava.util.Map<K,java.lang.Object>
-
clear
public void clear()
- Specified by:
clear
in interfacejava.util.Map<K,java.lang.Object>
-
keySet
public java.util.Set<K> keySet()
- Specified by:
keySet
in interfacejava.util.Map<K,java.lang.Object>
-
values
public java.util.Collection<java.lang.Object> values()
- Specified by:
values
in interfacejava.util.Map<K,java.lang.Object>
-
entrySet
public java.util.Set<java.util.Map.Entry<K,java.lang.Object>> entrySet()
- Specified by:
entrySet
in interfacejava.util.Map<K,java.lang.Object>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-