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

ITranslatable

interface ITranslatable

Something which is translatable, identified by id with a default representation given by getDefault.

Properties

id

open val id: String

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

name

abstract val name: String

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

Functions

getDefault

abstract fun getDefault(): String

Returns the default representation of this ITranslatable.

Companion Object Properties

ID_SEPARATOR

const val ID_SEPARATOR: String

The separator used in id to separate Class.name and name.

Inheritors

ISimpleTranslatable

interface ISimpleTranslatable : ITranslatable

Something which is ITranslatable and provides a default representation by value.

ITranslatableWithArgs

interface ITranslatableWithArgs : ITranslatable

Represents a ITranslatable with arguments.

Untranslatable

class Untranslatable : ITranslatable

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