AbstractColumn

abstract class AbstractColumn(val wrapped: MutableMap<String, Any?>) : AbstractSchema, Column

Base implementation for table Column backed by a mutable map.

Handles schema fields, visibility, and metadata initialization.

Constructors

Link copied to clipboard
constructor(wrapped: MutableMap<String, Any?>)

Properties

Link copied to clipboard
open override val decorators: MutableList<Decorator>

Decorators for this column header; default empty if absent.

Link copied to clipboard
open override var hidden: Boolean

Whether the element is hidden by default.

Link copied to clipboard
open override val hiddenViews: List<String>

list of the view that should be hidden for this column.

Link copied to clipboard
open override var id: String

Unique column id; coerced to non-null string using toNonNullableString().

Link copied to clipboard
open override val initialHiddenState: Boolean

Initial hidden state; captured from JSON at construction and remains immutable.

Link copied to clipboard
open override val logic: ColumnLogic?

Conditional logic rules; lazily parsed from the backing map.

Link copied to clipboard
open override val metadata: JoyMap

Metadata map; ensures a mutable map exists under Column.metadata before wrapping.

Link copied to clipboard
open override val permanentlyHidden: Boolean

When true, the field/column is permanently hidden on the current active view and cannot be shown via conditional logic.

Link copied to clipboard
open override var required: Boolean

Required flag; parsed strictly using toBooleanStrictOrNull() after lowercasing.

Link copied to clipboard
open override var title: String

Human-readable title; coerced to non-null string on read.

Link copied to clipboard
open override var type: Type

Concrete column type resolved via type() helper.

Link copied to clipboard

Functions

Link copied to clipboard
open override fun toJsonObject(): JsonObject

Serializes this instance to a structured JsonObject.

Link copied to clipboard
open override fun toJsonString(): String

Serializes this instance to a compact JSON string.

Link copied to clipboard
open override fun toMap(): MutableMap<String, Any?>

Converts this instance into a mutable key-value map suitable for mutation and re-serialization.