public interface ISettingsFile
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getList(String path)
Gets list of values from settings file.
|
Map<String,Object> |
getMap(String path)
Gets map of keys and values from settings file.
|
Object |
getValue(String path)
Gets value from settings file.
|
default Object |
getValueOrDefault(String path,
Object defaultValue)
Gets value from settings file or default value.
|
boolean |
isValuePresent(String path)
Checks if value exists in settings.
|
Object getValue(String path)
path - Path to the value. Depending on file format, it can be jsonPath, xpath etc.List<String> getList(String path)
path - Path to the value. Depending on file format, it can be jsonPath, xpath etc.Map<String,Object> getMap(String path)
path - Path to the value. Depending on file format, it can be jsonPath, xpath etc.boolean isValuePresent(String path)
path - Path to the values. Depending on file format, it can be jsonPath, xpath etc.default Object getValueOrDefault(String path, Object defaultValue)
path - Path to the values. Depending on file format, it can be jsonPath, xpath etc.defaultValue - will be returned if there is no value by path in settings file.Copyright © 2020. All rights reserved.