GraphMine

graphmine-core / io.github.sof3.graphmine.config / ConfigSpec

ConfigSpec

abstract class ConfigSpec

Superclass for type specifications of .kts config files

Types

GroupDelegate inner class GroupDelegate<G : ConfigGroupSpec<G>>
Used in property delegation. Config groups are included in the parent group by property delegation.

Constructors

<init> ConfigSpec()
Superclass for type specifications of .kts config files

Functions

checkAll fun checkAll(): Unit
Validates the whole config
entry fun <T : Any> entry(validator: (T) -> String? = { null }): SimpleConfigEntry<T>
Declares a required entryfun <T : Any> entry(default: T, validator: (T) -> String? = { null }): SimpleConfigEntry<T>
Declares an entry with a default value
group fun <G : ConfigGroupSpec<G>> group(group: G): GroupDelegate<G>
Config groups should be included by delegation to this call

Inheritors

ConfigGroupSpec abstract class ConfigGroupSpec<Self : ConfigGroupSpec<Self>> : ConfigSpec
Superclass of type specifications of groups in a ConfigSpec
CoreConfig class CoreConfig : ConfigSpec
Model for the server config.yml