Package septogeddon.pluginquery.api
Interface QueryConfiguration
- All Known Implementing Classes:
PropertiesQueryConfiguration
,YamlQueryConfiguration
public interface QueryConfiguration
Configuration for PluginQuery
- Author:
- Thito Yalasatria Sunarya
-
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
-
Method Details
-
getOption
Get option value from the configuration- Type Parameters:
T
- Anything- Parameters:
key
- the Key holder- Returns:
- the value
-
setOption
Set option value on the configuration- Type Parameters:
T
- Anything- Parameters:
key
- the Key holdervalue
- the value
-
loadConfiguration
Load configuration from a file (YAML)- Parameters:
file
- the file- Throws:
IOException
-
saveConfiguration
Dump configuration into a file (YAML)- Parameters:
file
- the file- Throws:
IOException
-