public interface PropertyResource
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(String path)
Returns whether a value is present for the given path.
|
void |
exportProperties(ConfigurationData configurationData)
Exports the properties (e.g.
|
Boolean |
getBoolean(String path)
Returns the value of the given path as a boolean if available.
|
Double |
getDouble(String path)
Returns the value of the given path as a double if available.
|
Integer |
getInt(String path)
Returns the value of the given path as an integer if available.
|
List<?> |
getList(String path)
Returns the value of the given path as a list if available.
|
Object |
getObject(String path)
Returns the object at the given path, or null if absent.
|
String |
getString(String path)
Returns the value of the given path as a String if available.
|
void |
reload()
Reloads the configuration, e.g.
|
void |
setValue(String path,
Object value)
Sets the value for the given path.
|
@Nullable Object getObject(String path)
path - the path to retrieve the value for@Nullable String getString(String path)
path - the path to retrieve a String for@Nullable Integer getInt(String path)
path - the path to retrieve an integer for@Nullable Double getDouble(String path)
path - the path to retrieve a double for@Nullable Boolean getBoolean(String path)
path - the path to retrieve a boolean for@Nullable List<?> getList(String path)
path - the path to retrieve a list forboolean contains(String path)
Property.isPresent(PropertyResource) should be favored over
calling this method as it may make more type-aware checks. This method simply returns whether some value
exists under the given path.path - the path to checkvoid setValue(String path, @Nullable Object value)
exportProperties(ConfigurationData) has been called.path - the path to set a new value forvalue - the value to setvoid reload()
void exportProperties(ConfigurationData configurationData)
configurationData - the configuration dataCopyright © 2016–2018 The AuthMe Team. All rights reserved.