WordScheme

data class WordScheme(var myName: String = DEFAULT_NAME, var minLength: Int = DEFAULT_MIN_LENGTH, var maxLength: Int = DEFAULT_MAX_LENGTH, var enclosure: String = DEFAULT_ENCLOSURE, var capitalization: CapitalizationMode = DEFAULT_CAPITALIZATION, var bundledDictionaryFiles: MutableSet<String> = DEFAULT_BUNDLED_DICTIONARY_FILES.toMutableSet(), var activeBundledDictionaryFiles: MutableSet<String> = DEFAULT_ACTIVE_BUNDLED_DICTIONARY_FILES.toMutableSet(), var userDictionaryFiles: MutableSet<String> = DEFAULT_USER_DICTIONARY_FILES.toMutableSet(), var activeUserDictionaryFiles: MutableSet<String> = DEFAULT_ACTIVE_USER_DICTIONARY_FILES.toMutableSet()) : Scheme<WordScheme> (source)

Contains settings for generating random words.

See also

Constructors

Link copied to clipboard
fun WordScheme(myName: String = DEFAULT_NAME, minLength: Int = DEFAULT_MIN_LENGTH, maxLength: Int = DEFAULT_MAX_LENGTH, enclosure: String = DEFAULT_ENCLOSURE, capitalization: CapitalizationMode = DEFAULT_CAPITALIZATION, bundledDictionaryFiles: MutableSet<String> = DEFAULT_BUNDLED_DICTIONARY_FILES.toMutableSet(), activeBundledDictionaryFiles: MutableSet<String> = DEFAULT_ACTIVE_BUNDLED_DICTIONARY_FILES.toMutableSet(), userDictionaryFiles: MutableSet<String> = DEFAULT_USER_DICTIONARY_FILES.toMutableSet(), activeUserDictionaryFiles: MutableSet<String> = DEFAULT_ACTIVE_USER_DICTIONARY_FILES.toMutableSet())

Types

Link copied to clipboard
object Companion

Holds constants.

Functions

Link copied to clipboard
open override fun copyAs(name: String): WordScheme

Returns a copy of this scheme that has the given name.

Link copied to clipboard
open override fun copyFrom(other: WordScheme)

Shallowly copies the state of other into this.

Link copied to clipboard
@NotNull
@Nls
open fun getDisplayName(): @NotNull @Nls String
Link copied to clipboard
open override fun getName(): String

Same as myName.

Properties

Link copied to clipboard

A mutable view of the filenames of the files in activeBundledDictionaryFiles.

Link copied to clipboard
var activeBundledDictionaryFiles: MutableSet<String>

The list of bundled dictionary files that are currently active; a subset of bundledDictionaryFiles.

Link copied to clipboard

A mutable view of the filenames of the files in activeUserDictionaryFiles.

Link copied to clipboard
var activeUserDictionaryFiles: MutableSet<String>

The list of user dictionary files that are currently active; a subset of userDictionaryFiles.

Link copied to clipboard

A mutable view of the filenames of the files in bundledDictionaryFiles.

Link copied to clipboard
var bundledDictionaryFiles: MutableSet<String>

The list of all dictionary files provided by the plugin.

Link copied to clipboard

The way in which the generated word should be capitalized.

Link copied to clipboard
var enclosure: String

The string that encloses the generated word on both sides.

Link copied to clipboard
var maxLength: Int

The maximum length of the generated word, inclusive.

Link copied to clipboard
var minLength: Int

The minimum length of the generated word, inclusive.

Link copied to clipboard
open override var myName: String

The name of the scheme.

Link copied to clipboard

A mutable view of the filenames of the files in userDictionaryFiles.

Link copied to clipboard
var userDictionaryFiles: MutableSet<String>

The list of all dictionary files registered by the user.