StringScheme

data class StringScheme(myName: String, minLength: Int, maxLength: Int, enclosure: String, capitalization: CapitalizationMode, symbolSets: Map<String, String>, activeSymbolSets: Map<String, String>, excludeLookAlikeSymbols: Boolean) : Scheme<StringScheme>

Contains settings for generating random strings.

See also

Constructors

StringScheme
Link copied to clipboard
fun StringScheme(myName: String = DEFAULT_NAME, minLength: Int = DEFAULT_MIN_LENGTH, maxLength: Int = DEFAULT_MAX_LENGTH, enclosure: String = DEFAULT_ENCLOSURE, capitalization: CapitalizationMode = DEFAULT_CAPITALIZATION, symbolSets: Map<String, String> = DEFAULT_SYMBOL_SETS.toMap(), activeSymbolSets: Map<String, String> = DEFAULT_ACTIVE_SYMBOL_SETS.toMap(), excludeLookAlikeSymbols: Boolean = DEFAULT_EXCLUDE_LOOK_ALIKE_SYMBOLS)

Types

Companion
Link copied to clipboard
object Companion
Holds constants.

Functions

copyAs
Link copied to clipboard
open override fun copyAs(name: String): StringScheme
Returns a copy of this scheme that has the given name.
copyFrom
Link copied to clipboard
open override fun copyFrom(other: StringScheme)
Shallowly copies the state of other into this.
getDisplayName
Link copied to clipboard
@NotNull()
@Nls()
open fun getDisplayName(): @NotNull() @Nls() String
getName
Link copied to clipboard
open override fun getName(): String
Same as myName.

Properties

activeSymbolSetList
Link copied to clipboard
var activeSymbolSetList: Collection<SymbolSet>
A list view of the SymbolSet objects described by activeSymbolSets.
activeSymbolSets
Link copied to clipboard
var activeSymbolSets: Map<String, String>
The symbol sets that are actually used for generating strings; a subset of symbolSets.
capitalization
Link copied to clipboard
var capitalization: CapitalizationMode
The capitalization mode of the generated string.
enclosure
Link copied to clipboard
var enclosure: String
The string that encloses the generated string on both sides.
excludeLookAlikeSymbols
Link copied to clipboard
var excludeLookAlikeSymbols: Boolean
Whether the symbols in SymbolSet.lookAlikeCharacters should be excluded.
maxLength
Link copied to clipboard
var maxLength: Int
The maximum length of the generated string, inclusive.
minLength
Link copied to clipboard
var minLength: Int
The minimum length of the generated string, inclusive.
myName
Link copied to clipboard
open override var myName: String
The name of the scheme.
serializedActiveSymbolSets
Link copied to clipboard
var serializedActiveSymbolSets: Map<String, String>
Same as activeSymbolSets, except that all emoji are serialized.
serializedSymbolSets
Link copied to clipboard
var serializedSymbolSets: Map<String, String>
Same as symbolSets, except that all emoji are serialized.
symbolSetList
Link copied to clipboard
var symbolSetList: Collection<SymbolSet>
A list view of the SymbolSet objects described by symbolSets.
symbolSets
Link copied to clipboard
var symbolSets: Map<String, String>
The symbol sets that are available for generating strings.

Sources

jvm source
Link copied to clipboard