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

TranslatableWithArgs

class TranslatableWithArgs : Translatable (source)

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, vararg otherArguments: Any)

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

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

Properties

arguments

val arguments: Array<Any>

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

id

val id: <ERROR CLASS>

The id of this Translatable -- per default it is "Class.namename"

name

val name: String

The name of this Translatable -- the name together with its Class.name 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.

Functions

getDefault

fun getDefault(): <ERROR CLASS>

Returns the default representation of this Translatable.