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

Untranslatable

class Untranslatable : Translatable (source)

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.

Parameters

representation - A representation which is not intended to be translated.

Constructors

<init>

Untranslatable(representation: CharSequence)
Untranslatable(representation: () -> String)Untranslatable(representation: String)

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

Properties

name

val name: String

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

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.

toString

fun toString(): String

Companion Object Properties

EMPTY

val EMPTY: Untranslatable

An empty string as Untranslatable.