public interface IConfigProperties
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,java.lang.String> |
getChildProperties(java.lang.String propertyName)
Retrieves all child configuration setting under specified propertyName.
|
java.lang.String |
getProperty(java.lang.String propertyName)
Retrieves configuration setting specified by propertyName.
|
java.lang.String |
getProperty(java.lang.String propertyName,
java.lang.String defaultValue)
Returns value of configuration setting.
|
boolean |
propertyExists(java.lang.String propertyName)
Verifies if a configuration setting exists.
|
java.lang.String getProperty(java.lang.String propertyName)
Example:
String propHost = configProps.getProperty("url.service.host");
propertyName - the key for the propertyboolean propertyExists(java.lang.String propertyName)
Example:
boolean propExists = configProps.propertyExists("url.service.host");
propertyName - name of configuration settingjava.lang.String getProperty(java.lang.String propertyName,
java.lang.String defaultValue)
Example:
String propHost = configProps.getProperty("url.service.host", "localhost");
propertyName - name of configuration settingdefaultValue - default value to returnjava.util.Map<java.lang.String,java.lang.String> getChildProperties(java.lang.String propertyName)
propertyName - the key for the property
Licensed Materials - Property of IBM
OpenPages with Watson (PID: 5725-D51)
© Copyright IBM Corporation 2013, 2021. All Rights Reserved.
US Government Users Restricted Rights -
Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.