doc / ch.tutteli.atrium.reporting.translating / TranslatableWithArgs

TranslatableWithArgs

data class TranslatableWithArgs : Translatable

A Translatable which contains placeholders for arguments.

Constructors

<init>

TranslatableWithArgs(translatable: Translatable, argument: Any)

Creates a TranslatableWithArgs with the given translatable and its one and only argument.

TranslatableWithArgs(translatable: Translatable, arg1: Any, arg2: Any)

Creates a TranslatableWithArgs with the given translatable, the first argument arg1 and the second argument arg2.

TranslatableWithArgs(translatable: Translatable, arg1: Any, arg2: Any, vararg otherArgs: Any)

Creates a TranslatableWithArgs with the given translatable, the first argument arg1, the second argument arg2 and the otherArgs.

TranslatableWithArgs(translatable: Translatable, arguments: List<Any>)

Properties

arguments

val arguments: List<Any>

The arguments which should be used to substitute the placeholders of the translatable.

name

val name: String

The name of this Translatable -- the name together with its KClass.qualifiedName should identify a Translatable (see id).

translatable

val translatable: Translatable

The Translatable as such which contains placeholders and for which translations can be been defined.

Inherited Properties

id

open val id: String

The id of this Translatable -- per default it is "KClass.fullName ID_SEPARATOR" without the spaces.

Functions

getDefault

fun getDefault(): String

Returns the default representation of this Translatable.