AttributeType

@CataloguedBy(catalogue = AttributeTypes::class)
interface AttributeType : Translatable, Keyed

The type of an attribute.

Inheritors

Functions

Link copied to clipboard
@NotNull
abstract fun key(): @NotNull Key
Link copied to clipboard
abstract fun sanitizeValue(value: Double): Double

Ensures that the given value satisfies the constraints of this attribute type.

Link copied to clipboard
@NotNull
abstract fun translationKey(): @NotNull String

Properties

Link copied to clipboard
@get:JvmName(name = "defaultValue")
abstract val defaultValue: Double

The default value for attributes of this type.