public class JsonSettingsFile extends Object implements ISettingsFile
| Constructor and Description |
|---|
JsonSettingsFile(File file) |
JsonSettingsFile(String resourceName) |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getList(String jsonPath)
Gets list of values from settings file.
|
Map<String,Object> |
getMap(String jsonPath)
Gets map of keys and values from settings file.
|
Object |
getValue(String jsonPath)
Gets value from settings file.
|
boolean |
isValuePresent(String path)
Checks if value exists in settings.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetValueOrDefaultpublic JsonSettingsFile(File file) throws IOException
IOExceptionpublic JsonSettingsFile(String resourceName)
public Object getValue(String jsonPath)
ISettingsFilegetValue in interface ISettingsFilejsonPath - Path to the value. Depending on file format, it can be jsonPath, xpath etc.public List<String> getList(String jsonPath)
ISettingsFilegetList in interface ISettingsFilejsonPath - Path to the value. Depending on file format, it can be jsonPath, xpath etc.public Map<String,Object> getMap(String jsonPath)
ISettingsFilegetMap in interface ISettingsFilejsonPath - Path to the value. Depending on file format, it can be jsonPath, xpath etc.public boolean isValuePresent(String path)
ISettingsFileisValuePresent in interface ISettingsFilepath - Path to the values. Depending on file format, it can be jsonPath, xpath etc.Copyright © 2020. All rights reserved.