Package septogeddon.pluginquery
Class PropertiesQueryConfiguration
java.lang.Object
septogeddon.pluginquery.PropertiesQueryConfiguration
- All Implemented Interfaces:
QueryConfiguration
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T> T
getOption
(QueryConfigurationKey<T> key) Get option value from the configurationvoid
loadConfiguration
(File file) Load configuration from a file (YAML)void
saveConfiguration
(File file) Dump configuration into a file (YAML)<T> void
setOption
(QueryConfigurationKey<T> key, T value) Set option value on the configuration
-
Field Details
-
HEADER
- See Also:
-
-
Constructor Details
-
PropertiesQueryConfiguration
public PropertiesQueryConfiguration()
-
-
Method Details
-
getOption
Description copied from interface:QueryConfiguration
Get option value from the configuration- Specified by:
getOption
in interfaceQueryConfiguration
- Type Parameters:
T
- Anything- Parameters:
key
- the Key holder- Returns:
- the value
-
setOption
Description copied from interface:QueryConfiguration
Set option value on the configuration- Specified by:
setOption
in interfaceQueryConfiguration
- Type Parameters:
T
- Anything- Parameters:
key
- the Key holdervalue
- the value
-
loadConfiguration
Description copied from interface:QueryConfiguration
Load configuration from a file (YAML)- Specified by:
loadConfiguration
in interfaceQueryConfiguration
- Parameters:
file
- the file- Throws:
IOException
-
saveConfiguration
Description copied from interface:QueryConfiguration
Dump configuration into a file (YAML)- Specified by:
saveConfiguration
in interfaceQueryConfiguration
- Parameters:
file
- the file- Throws:
IOException
-