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> TgetOption(QueryConfigurationKey<T> key) Get option value from the configurationvoidloadConfiguration(File file) Load configuration from a file (YAML)voidsaveConfiguration(File file) Dump configuration into a file (YAML)<T> voidsetOption(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
-