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.
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 ITranslatable -- the name together with its Class.name should identify a ITranslatable (see id). |
open val id: String
The id of this ITranslatable -- per default it is "Class.namename" |
fun getDefault(): String
Returns the default representation of this ITranslatable. |