| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.sling.api.wrappers.ValueMapDecorator
public class ValueMapDecorator
ValueMapDecorator decorates another Map
 to provide a basic implementation for the additional methods
 of a ValueMap.
| Nested Class Summary | 
|---|
| Nested classes/interfaces inherited from interface java.util.Map | 
|---|
| Map.Entry<K,V> | 
| Field Summary | 
|---|
| Fields inherited from interface org.apache.sling.api.resource.ValueMap | 
|---|
| EMPTY | 
| Constructor Summary | |
|---|---|
| ValueMapDecorator(Map<String,Object> base)Creates a new wrapper around a given map. | |
| Method Summary | ||
|---|---|---|
|  void | clear() | |
|  boolean | containsKey(Object key) | |
|  boolean | containsValue(Object value) | |
|  Set<Map.Entry<String,Object>> | entrySet() | |
|  Object | get(Object key) | |
| 
 | get(String name,
    Class<T> type)Get a named property and convert it into the given type. | |
| 
 | get(String name,
    T defaultValue)Get a named property and convert it into the given type. | |
|  boolean | isEmpty() | |
|  Set<String> | keySet() | |
|  Object | put(String key,
    Object value) | |
|  void | putAll(Map<? extends String,?> t) | |
|  Object | remove(Object key) | |
|  int | size() | |
|  String | toString() | |
|  Collection<Object> | 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 | 
|---|
| equals, hashCode | 
| Constructor Detail | 
|---|
public ValueMapDecorator(Map<String,Object> base)
base - wrapped object| Method Detail | 
|---|
public <T> T get(String name,
                 Class<T> type)
get in interface ValueMapname - The name of the propertytype - The class of the type
null if
         non existing or can't be converted.
public <T> T get(String name,
                 T defaultValue)
get in interface ValueMapname - The name of the propertydefaultValue - The default value to use if the named property does
            not exist or cannot be converted to the requested type. The
            default value is also used to define the type to convert the
            value to. If this is null any existing property is
            not converted.
public int size()
size in interface Map<String,Object>public boolean isEmpty()
isEmpty in interface Map<String,Object>public boolean containsKey(Object key)
containsKey in interface Map<String,Object>public boolean containsValue(Object value)
containsValue in interface Map<String,Object>public Object get(Object key)
get in interface Map<String,Object>
public Object put(String key,
                  Object value)
put in interface Map<String,Object>public Object remove(Object key)
remove in interface Map<String,Object>public void putAll(Map<? extends String,?> t)
putAll in interface Map<String,Object>public void clear()
clear in interface Map<String,Object>public Set<String> keySet()
keySet in interface Map<String,Object>public Collection<Object> values()
values in interface Map<String,Object>public Set<Map.Entry<String,Object>> entrySet()
entrySet in interface Map<String,Object>public String toString()
toString in class Object| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||