public class DeepModifiableValueMapDecorator extends ModifiableValueMapDecorator
Constructor and Description |
---|
DeepModifiableValueMapDecorator(Resource resource,
java.util.Map<java.lang.String,java.lang.Object> base) |
DeepModifiableValueMapDecorator(Resource resource,
java.util.Map<java.lang.String,java.lang.Object> base,
java.lang.String[] subnodes) |
Modifier and Type | Method and Description |
---|---|
boolean |
containsKey(java.lang.Object key) |
java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.Object>> |
entrySet() |
java.lang.Object |
get(java.lang.Object key) |
<T> T |
get(java.lang.String name,
java.lang.Class<T> type)
Get a named property and convert it into the given type.
|
<T> T |
get(java.lang.String name,
T defaultValue)
Get a named property and convert it into the given type.
|
java.util.Set<java.lang.String> |
keySet() |
java.lang.Object |
put(java.lang.String key,
java.lang.Object value) |
void |
putAll(java.util.Map<? extends java.lang.String,?> t) |
java.util.Collection<java.lang.Object> |
values() |
clear, containsValue, equals, hashCode, isEmpty, remove, size, toString
public DeepModifiableValueMapDecorator(Resource resource, java.util.Map<java.lang.String,java.lang.Object> base, java.lang.String[] subnodes)
public DeepModifiableValueMapDecorator(Resource resource, java.util.Map<java.lang.String,java.lang.Object> base)
public <T> T get(java.lang.String name, java.lang.Class<T> type)
null
in this
case.get
in interface ValueMap
get
in class ValueMapDecorator
T
- The class of the typename
- The name of the propertytype
- The class of the typenull
if
non existing or can't be converted.public <T> T get(java.lang.String name, T defaultValue)
null
.
Therefore all implementations should internally call Map.get(Object)
when the 2nd parameter
has value null
.get
in interface ValueMap
get
in class ValueMapDecorator
T
- The expected typename
- 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. Must not be null
. If you want to return null
by default
rather rely on ValueMap.get(String, Class)
.public boolean containsKey(java.lang.Object key)
containsKey
in interface java.util.Map<java.lang.String,java.lang.Object>
containsKey
in class ValueMapDecorator
public java.lang.Object get(java.lang.Object key)
get
in interface java.util.Map<java.lang.String,java.lang.Object>
get
in class ValueMapDecorator
public java.lang.Object put(java.lang.String key, java.lang.Object value)
put
in interface java.util.Map<java.lang.String,java.lang.Object>
put
in class ValueMapDecorator
public void putAll(java.util.Map<? extends java.lang.String,?> t)
putAll
in interface java.util.Map<java.lang.String,java.lang.Object>
putAll
in class ValueMapDecorator
public java.util.Set<java.lang.String> keySet()
keySet
in interface java.util.Map<java.lang.String,java.lang.Object>
keySet
in class ValueMapDecorator
public java.util.Collection<java.lang.Object> values()
values
in interface java.util.Map<java.lang.String,java.lang.Object>
values
in class ValueMapDecorator
public java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.Object>> entrySet()
entrySet
in interface java.util.Map<java.lang.String,java.lang.Object>
entrySet
in class ValueMapDecorator
Copyright © 2010 - 2020 Adobe. All Rights Reserved