StringScheme

data class StringScheme(    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 prefix: String = DEFAULT_PREFIX,     var suffix: String = DEFAULT_SUFFIX,     var serializedSymbolSets: Map<String, String> = DEFAULT_SYMBOL_SETS.toMap(),     var serializedActiveSymbolSets: Map<String, String> = DEFAULT_ACTIVE_SYMBOL_SETS.toMap(),     var excludeLookAlikeSymbols: Boolean = DEFAULT_EXCLUDE_LOOK_ALIKE_SYMBOLS) : Scheme<StringScheme>

Contains settings for generating random strings.

See also

Constructors

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,     prefix: String = DEFAULT_PREFIX,     suffix: String = DEFAULT_SUFFIX,     serializedSymbolSets: Map<String, String> = DEFAULT_SYMBOL_SETS.toMap(),     serializedActiveSymbolSets: Map<String, String> = DEFAULT_ACTIVE_SYMBOL_SETS.toMap(),     excludeLookAlikeSymbols: Boolean = DEFAULT_EXCLUDE_LOOK_ALIKE_SYMBOLS)

Types

Link copied to clipboard
object Companion

Holds constants.

Functions

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

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

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

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
var activeSymbolSetList: Collection<SymbolSet>

A list view of the SymbolSet objects described by activeSymbolSets.

Link copied to clipboard
var activeSymbolSets: Map<String, String>

Same as activeSymbolSets, except that serialized emoji have been deserialized.

Link copied to clipboard
var capitalization: CapitalizationMode

The capitalization mode of the generated string.

Link copied to clipboard
var enclosure: String

The string that encloses the generated string on both sides.

Link copied to clipboard
var excludeLookAlikeSymbols: Boolean

Whether the symbols in SymbolSet.lookAlikeCharacters should be excluded.

Link copied to clipboard
var maxLength: Int

The maximum length of the generated string, inclusive.

Link copied to clipboard
var minLength: Int

The minimum length of the generated string, inclusive.

Link copied to clipboard
open override var myName: String

The name of the scheme.

Link copied to clipboard
var prefix: String

The string to prepend to the generated value.

Link copied to clipboard
var serializedActiveSymbolSets: Map<String, String>

The symbol sets that are actually used for generating strings; a subset of symbolSets. Emoji have been serialized for compatibility with JetBrains' serializer.

Link copied to clipboard
var serializedSymbolSets: Map<String, String>

The symbol sets that are available for generating strings. Emoji have been serialized for compatibility with JetBrains' serializer.

Link copied to clipboard
var suffix: String

The string to append to the generated value.

Link copied to clipboard
var symbolSetList: Collection<SymbolSet>

A list view of the SymbolSet objects described by symbolSets.

Link copied to clipboard
var symbolSets: Map<String, String>

Same as symbolSets, except that serialized emoji have been deserialized.

Sources

Link copied to clipboard