public class DeepModifiableValueMapDecorator extends ModifiableValueMapDecorator
Constructor and Description |
---|
DeepModifiableValueMapDecorator(Resource resource,
Map<String,Object> base) |
DeepModifiableValueMapDecorator(Resource resource,
Map<String,Object> base,
String[] subnodes) |
Modifier and Type | Method and Description |
---|---|
boolean |
containsKey(Object key) |
Set<Map.Entry<String,Object>> |
entrySet() |
Object |
get(Object key) |
<T> T |
get(String name,
Class<T> type)
Get a named property and convert it into the given type.
|
<T> T |
get(String name,
T defaultValue)
Get a named property and convert it into the given type.
|
Set<String> |
keySet() |
Object |
put(String key,
Object value) |
void |
putAll(Map<? extends String,?> t) |
Collection<Object> |
values() |
clear, containsValue, isEmpty, remove, size, toString
public DeepModifiableValueMapDecorator(Resource resource, Map<String,Object> base, String[] subnodes)
public <T> T get(String name, Class<T> type)
null
in this
case.get
in interface ValueMap
get
in class ValueMapDecorator
name
- The name of the propertytype
- The class of the typenull
if
non existing or can't be converted.public <T> T get(String name, T defaultValue)
get
in interface ValueMap
get
in class ValueMapDecorator
name
- 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 boolean containsKey(Object key)
containsKey
in interface Map<String,Object>
containsKey
in class ValueMapDecorator
public Collection<Object> values()
"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"