Top Fields Constructors Methods
org.postgresql.util

public Class ExpressionProperties

extends Properties
Class Inheritance
Static Imports
org.postgresql.util.internal.Nullness.castNonNull

Field Summary

Modifier and TypeField and Description
private final Properties[]
private static final @Regex(value: 1) Pattern

Constructor Summary

AccessConstructor and Description
public
ExpressionProperties(Properties...
java.util.Properties
defaults
)

Creates an empty property list with the specified defaults.

Method Summary

Modifier and TypeMethod and Description
public @Nullable String

Returns:

the value in this property list with the specified key value.
getProperty
(String
the property key.
key
)

Overrides java.util.Properties.getProperty.

Returns property value with all ${propKey} like references replaced with the value of the relevant property with recursive resolution.

public @PolyNull String
getProperty(String
the hashtable key.
key
,
@PolyNull String
a default value.
defaultValue
)

Overrides java.util.Properties.getProperty.

Searches for the property with the specified key in this property list.

public @Nullable String

Returns:

raw property value
getRawPropertyValue
(String
property name
key
)

Returns raw value of a property without any replacements.

private @PolyNull String
Inherited from java.util.Properties:
clearclonecomputecomputeIfAbsentcomputeIfPresentcontainscontainsKeycontainsValueelementsentrySetequalsforEachgetgetOrDefaulthashCodeisEmptykeyskeySetlistlistloadloadloadFromXMLmergepropertyNamesputputAllputIfAbsentrehashremoveremovereplacereplacereplaceAllsavesetPropertysizestorestorestoreToXMLstoreToXMLstoreToXMLstringPropertyNamestoStringvalues

Field Detail

defaultsback to summary
private final Properties[] defaults

Hides java.util.Properties.defaults.

EXPRESSIONback to summary
private static final @Regex(value: 1) Pattern EXPRESSION

Constructor Detail

ExpressionPropertiesback to summary
public ExpressionProperties(Properties... defaults)

Creates an empty property list with the specified defaults.

Parameters
defaults:Properties[]

java.util.Properties

Method Detail

getPropertyback to summary
public @Nullable String getProperty(String key)

Overrides java.util.Properties.getProperty.

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.

Parameters
key:String

the property key.

Returns:@Nullable String

the value in this property list with the specified key value.

Annotations
@Override
getPropertyback to summary
public @PolyNull String getProperty(String key, @PolyNull String defaultValue)

Overrides java.util.Properties.getProperty.

Doc from java.util.Properties.getProperty.

Searches for the property with the specified key in this property list. If the key is not found in this property list, the default property list, and its defaults, recursively, are then checked. The method returns the default value argument if the property is not found.

Parameters
key:String

the hashtable key.

defaultValue:@PolyNull String

a default value.

Returns:@PolyNull String

the value in this property list with the specified key value.

Annotations
@Override
getRawPropertyValueback to summary
public @Nullable String getRawPropertyValue(String key)

Returns raw value of a property without any replacements.

Parameters
key:String

property name

Returns:@Nullable String

raw property value

replacePropertiesback to summary
private @PolyNull String replaceProperties(@PolyNull String value)