public class ExpressionProperties extends Properties
Constructor and Description |
---|
ExpressionProperties(Properties... defaults)
Creates an empty property list with the specified defaults.
|
Modifier and Type | Method and Description |
---|---|
@Nullable String |
getProperty(String key)
Returns property value with all
${propKey} like references replaced with the value of
the relevant property with recursive resolution. |
@PolyNull String |
getProperty(String key,
@PolyNull String defaultValue) |
@Nullable String |
getRawPropertyValue(String key)
Returns raw value of a property without any replacements.
|
list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNames
clear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keys, keySet, merge, put, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, size, toString, values
public ExpressionProperties(Properties... defaults)
defaults
- java.util.Propertiespublic @Nullable String getProperty(String key)
Returns property value with all ${propKey}
like references replaced with the value of
the relevant property with recursive resolution.
The method returns null
if the property is not found.
getProperty
in class Properties
key
- the property key.public @PolyNull String getProperty(String key, @PolyNull String defaultValue)
getProperty
in class Properties
Copyright © 1997-2020 PostgreSQL Global Development Group. All Rights Reserved.