Package septogeddon.pluginquery
Class YamlQueryConfiguration
java.lang.Object
septogeddon.pluginquery.YamlQueryConfiguration
- 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)static void
save
(File file, YamlQueryConfiguration configuration) void
saveConfiguration
(File file) Dump configuration into a file (YAML)static void
saveDefaultConfig
(File file) <T> void
setOption
(QueryConfigurationKey<T> key, T value) Set option value on the configuration
-
Field Details
-
HEADER
- See Also:
-
FOOTER
- See Also:
-
map
-
-
Constructor Details
-
YamlQueryConfiguration
public YamlQueryConfiguration()
-
-
Method Details
-
saveDefaultConfig
- Throws:
IOException
-
save
- Throws:
IOException
-
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
-