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

Untranslatable

class Untranslatable : Translatable

Represents a Translatable which is not translatable but has only a fixed name which serves as getDefault.

Use this class to represent identifiers (method/property names etc.) and the like.

Constructors

<init>

Untranslatable(representation: CharSequence)

Use this overload if the creation of the representation is cheap -- use the other overload with the lambda instead, if the creation of the representation is expensive.

Untranslatable(representation: () -> String)

Use this overload if the creation of the representation is expensive. If it is cheap, then you might want to use the other overload with CharSequence as parameter type.

Properties

name

val name: String

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

Inherited Properties

id

open val id: String

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

Functions

getDefault

fun getDefault(): String

Returns the default representation of this Translatable.

Companion Object Properties

EMPTY

val EMPTY: Untranslatable

An empty string as Untranslatable.