data class WordSettings : Settings<WordSettings>
Contains settings for generating random words.
WordSettings(minLength: Int = DEFAULT_MIN_LENGTH, maxLength: Int = DEFAULT_MAX_LENGTH, enclosure: String = DEFAULT_ENCLOSURE, capitalization: CapitalizationMode = DEFAULT_CAPITALIZATION, bundledDictionaryFiles: MutableSet<String> = mutableSetOf(BundledDictionary.SIMPLE_DICTIONARY, BundledDictionary.EXTENDED_DICTIONARY), userDictionaryFiles: MutableSet<String> = mutableSetOf(), activeBundledDictionaryFiles: MutableSet<String> = mutableSetOf(BundledDictionary.SIMPLE_DICTIONARY), activeUserDictionaryFiles: MutableSet<String> = mutableSetOf())
Contains settings for generating random words. |
var activeBundledDictionaries: Set<BundledDictionary>
A mutable view of the filenames of the files in activeBundledDictionaryFiles. |
|
var activeBundledDictionaryFiles: MutableSet<String>
The list of bundled dictionary files that are currently active; a subset of bundledDictionaryFiles. |
|
var activeUserDictionaries: Set<UserDictionary>
A mutable view of the filenames of the files in activeUserDictionaryFiles. |
|
var activeUserDictionaryFiles: MutableSet<String>
The list of user dictionary files that are currently active; a subset of userDictionaryFiles. |
|
var bundledDictionaries: Set<BundledDictionary>
A mutable view of the filenames of the files in bundledDictionaryFiles. |
|
var bundledDictionaryFiles: MutableSet<String>
The list of all dictionary files provided by the plugin. |
|
var capitalization: CapitalizationMode
The way in which the generated word should be capitalized. |
|
var enclosure: String
The string that encloses the generated word on both sides. |
|
var maxLength: Int
The maximum length of the generated word, inclusive. |
|
var minLength: Int
The minimum length of the generated word, inclusive. |
|
var userDictionaries: Set<UserDictionary>
A mutable view of the filenames of the files in userDictionaryFiles. |
|
var userDictionaryFiles: MutableSet<String>
The list of all dictionary files registered by the user. |
fun copyState(): WordSettings
Returns a shallow copy of this instance. |
|
fun getState(): WordSettings
Returns |
|
fun loadState(state: WordSettings): Unit
Copies the fields of |
val default: WordSettings
The persistent |
|
val DEFAULT_CAPITALIZATION: CapitalizationMode
The default value of the capitalization field. |
|
const val DEFAULT_ENCLOSURE: String
The default value of the enclosure field. |
|
const val DEFAULT_MAX_LENGTH: Int
The default value of the maxLength field. |
|
const val DEFAULT_MIN_LENGTH: Int
The default value of the minLength field. |