doc / ch.tutteli.atrium.domain.builders.reporting / ReporterBuilder

ReporterBuilder

expect interface ReporterBuilder : ReporterBuilderCommon (source)
Deprecated: Configure components via withOptions when creating an expectation verb instead; will be removed with 0.17.0

Provides options to create a Translator or TranslationSupplier -- the platform specific interface might provide further options.

Functions

withoutTranslations

open fun withoutTranslations(primaryLocale: Locale = java.util.Locale.getDefault()): ObjectFormatterOption

Uses UsingDefaultTranslator as Translator where the given primaryLocale is used to format arguments of TranslatableWithArgs.

Inherited Functions

withDefaultTranslationSupplier

abstract fun withDefaultTranslationSupplier(): LocaleOrderDeciderOption

Uses a predefined method to create a TranslationSupplier -- see platform specific interface for further information.

withoutTranslations

abstract fun withoutTranslations(primaryLocale: Locale): ObjectFormatterOption

Uses UsingDefaultTranslator as Translator where the given primaryLocale is used to format arguments of TranslatableWithArgs.

withoutTranslationsUseDefaultLocale

open fun withoutTranslationsUseDefaultLocale(): ObjectFormatterOption

Uses UsingDefaultTranslator as Translator where getDefaultLocale is used to format arguments of TranslatableWithArgs.

withTranslationSupplier

abstract fun withTranslationSupplier(translationSupplier: TranslationSupplier): LocaleOrderDeciderOption

Uses the given translationSupplier as TranslationSupplier.

withTranslator

abstract fun withTranslator(translator: Translator): ObjectFormatterOption

Uses the given translator as Translator skipping the options for TranslationSupplier and LocaleOrderDecider assuming the given translator is implemented differently -- use withDefaultTranslationSupplier or withTranslationSupplier in case the given translator requires a TranslationSupplier or a LocaleOrderDecider.

Companion Object Functions

create

fun create(): ReporterBuilder