public class DeepReadValueMapDecorator extends ValueMapDecorator
Constructor and Description |
---|
DeepReadValueMapDecorator(Resource resource,
ValueMap base) |
Modifier and Type | Method and Description |
---|---|
boolean |
containsKey(Object key) |
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.
|
clear, containsValue, entrySet, equals, hashCode, isEmpty, keySet, put, putAll, remove, size, toString, values
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public <T> T get(String name, Class<T> type)
ValueMapDecorator
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.ValueMap.get(java.lang.String, java.lang.Class)
public <T> T get(String name, T defaultValue)
ValueMapDecorator
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. If this is null
any existing property is
not converted.ValueMap.get(java.lang.String, java.lang.Object)
public boolean containsKey(Object key)
ValueMapDecorator
containsKey
in interface Map<String,Object>
containsKey
in class ValueMapDecorator
ValueMapDecorator.containsKey(java.lang.Object)
public Object get(Object key)
ValueMapDecorator
get
in interface Map<String,Object>
get
in class ValueMapDecorator
ValueMapDecorator.get(java.lang.Object)
Copyright © 2017 The Apache Software Foundation. All rights reserved.