public class StandardReadableProperties extends Object implements ReadableProperties
| Modifier and Type | Field and Description |
|---|---|
private Properties |
rawProperties |
| Constructor and Description |
|---|
StandardReadableProperties(Map<String,String> properties) |
StandardReadableProperties(Properties properties) |
| Modifier and Type | Method and Description |
|---|---|
String |
getProperty(String key)
Retrieves the property value for the given property key.
|
String |
getProperty(String key,
String defaultValue)
Retrieves the property value for the given property key.
|
Set<String> |
getPropertyKeys()
Retrieves all known property keys.
|
protected Properties |
getRawProperties() |
int |
size()
Returns the size of the properties.
|
private final Properties rawProperties
public StandardReadableProperties(Properties properties)
public String getProperty(String key)
ReadablePropertiesgetProperty in interface ReadablePropertieskey - the key of property value to lookuppublic String getProperty(String key, String defaultValue)
ReadablePropertiesgetProperty in interface ReadablePropertieskey - the key of property value to lookupdefaultValue - The default value to use if the property does not existpublic Set<String> getPropertyKeys()
ReadablePropertiesgetPropertyKeys in interface ReadablePropertiesprotected Properties getRawProperties()
public int size()
Copyright © 2023 Apache NiFi Project. All rights reserved.