Skip to content

//core/io.github.serpro69.kfaker.provider/YamlFakeDataProvider

YamlFakeDataProvider

abstract class YamlFakeDataProvider<T : FakeDataProvider>(fakerService: FakerService) : AbstractFakeDataProvider<T>

Abstract class for all concrete FakeDataProvider's that use yml files as data source.

Parameters

jvm

T type of data provider (i.e. Address)

Inheritors

Address
Color
Currency
CurrencySymbol
File
FileMimeType
Gender
IdNumber
Internet
Measurement
Name
PhoneNumber
CellPhone
Separator
Source

Constructors

YamlFakeDataProvider [jvm]
constructor(fakerService: FakerService)

Properties

Name Summary
unique [jvm]
abstract val unique: T
An instance of T for generating unique values

Functions

Name Summary
clear [jvm]
fun clear(name: String)
Clears used unique values for the function name of this provider.
clearAll [jvm]
fun clearAll()
Clears all used unique values of this provider.