VariableMetadata

data class VariableMetadata(val field: Field?, val fieldPath: List<String>, val variableName: String, val required: Boolean, val bound: Boolean = true)

Represents metadata for a variable, including its field, path, name, and whether it's required or bound.

Constructors

Link copied to clipboard
constructor(field: Field?, fieldPath: List<String>, variableName: String, required: Boolean, bound: Boolean = true)

Properties

Link copied to clipboard
val bound: Boolean = true

Whether the command body field is bound. Defaults to true.

Link copied to clipboard
val field: Field?

The Field object representing the variable. Can be null.

Link copied to clipboard

Provides the name of the last field in the fieldPath.

Link copied to clipboard

A list of strings representing the path to the variable within a nested structure.

Link copied to clipboard

Indicates if the variable is required.

Link copied to clipboard

The name of the variable.

Link copied to clipboard

Dynamically determines the type of the variable based on the provided field and fieldPath. It returns null if the field is null or if the fieldPath cannot be resolved.