FeatureValue

sealed interface FeatureValue

A JSON-like value an extension's feature (e.g. PLP's BDD/probability) attaches to a page, keyed by name in PageFeatureState - toolkit-neutral so any frontend can render it without knowing the extension's own types.

Inheritors

Types

Link copied to clipboard
data class BooleanValue(val value: Boolean) : FeatureValue

A boolean flag (e.g. "is a BDD available for the current solution").

Link copied to clipboard
data class ListValue(val values: List<FeatureValue>) : FeatureValue

An ordered list of nested values.

Link copied to clipboard
data object NullValue : FeatureValue

No value is available.

Link copied to clipboard
data class Number(val value: Double) : FeatureValue

A numeric value (e.g. PLP's per-solution probability).

Link copied to clipboard
data class ObjectValue(val values: Map<String, FeatureValue>) : FeatureValue

A nested key-value structure.

Link copied to clipboard
data class Text(val value: String) : FeatureValue

A plain string value.