Class PropertiesDatabase
java.lang.Object
org.sgrewritten.stargate.database.property.PropertiesDatabase
- All Implemented Interfaces:
StoredPropertiesAPI
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetProperty
(@NotNull StoredProperty property) Get a property from a stored properties filevoid
setProperty
(@NotNull StoredProperty property, String value) Set a property from a stored properties filevoid
setProperty
(StoredProperty property, Object value) Set a property from a stored properties file
-
Constructor Details
-
PropertiesDatabase
- Parameters:
fileLocation
-The properties file to read
- Throws:
IOException
-If unable to read the file
-
-
Method Details
-
getProperty
Description copied from interface:StoredPropertiesAPI
Get a property from a stored properties file- Specified by:
getProperty
in interfaceStoredPropertiesAPI
- Parameters:
property
-The property to get the value of
- Returns:
The value of the property, or otherwise null
-
setProperty
Description copied from interface:StoredPropertiesAPI
Set a property from a stored properties file- Specified by:
setProperty
in interfaceStoredPropertiesAPI
- Parameters:
property
-The property to set the value on
value
-The value to set the property to
-
setProperty
Description copied from interface:StoredPropertiesAPI
Set a property from a stored properties file- Specified by:
setProperty
in interfaceStoredPropertiesAPI
- Parameters:
property
-The property to set the value on
value
-The value to set the property to
-