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

Untranslatable

class Untranslatable : ITranslatable

Represents an ITranslatable 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 ITranslatable -- the name together with its Class.name should identify a ITranslatable (see id).

Inherited Properties

id

open val id: String

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

Functions

getDefault

fun getDefault(): String

Returns the default representation of this ITranslatable.