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, isEmpty, keySet, put, putAll, remove, size, toString, valuesclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAllpublic <T> T get(String name, Class<T> type)
ValueMapDecoratornull in this
case.get in interface ValueMapget in class ValueMapDecoratorname - 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)
ValueMapDecoratorget in interface ValueMapget in class ValueMapDecoratorname - 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)
ValueMapDecoratorcontainsKey in interface Map<String,Object>containsKey in class ValueMapDecoratorValueMapDecorator.containsKey(java.lang.Object)public Object get(Object key)
ValueMapDecoratorget in interface Map<String,Object>get in class ValueMapDecoratorValueMapDecorator.get(java.lang.Object)Copyright © 2014 The Apache Software Foundation. All rights reserved.