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.
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. |
val name: String
The name of this Translatable -- the name together with its KClass.qualifiedName should identify a Translatable (see id). |
open val id: String
The id of this Translatable -- per default it is "KClass.fullName ID_SEPARATOR" without the spaces. |
fun getDefault(): String
Returns the default representation of this Translatable. |
val EMPTY: Untranslatable
An empty string as Untranslatable. |