A2uiCoreDataModel


interface A2uiCoreDataModel : AutoCloseable


A storage interface for the JSON data tree.

Summary

Public functions

Unit

Cleans up resources (e.g., clearing registries to prevent memory leaks).

operator Any?

Retrieves the value at the given absolute path.

Unit
update(path: A2uiDataPath, value: Any?)

Replaces the value at the given absolute path.

Public functions

close

Added in 1.0.0-alpha01
fun close(): Unit

Cleans up resources (e.g., clearing registries to prevent memory leaks).

get

Added in 1.0.0-alpha01
operator fun get(path: A2uiDataPath): Any?

Retrieves the value at the given absolute path.

Parameters
path: A2uiDataPath

The absolute JSON pointer path to the data point to retrieve.

Returns
Any?

The value stored at the given path, or null if the path does not exist or has no value. The returned type will correspond to a standard JSON data type: String, Number, Boolean, null, Map<String, Any?> (for JSON objects), or List<Any?> (for JSON arrays).

update

Added in 1.0.0-alpha01
fun update(path: A2uiDataPath, value: Any?): Unit

Replaces the value at the given absolute path.

Parameters
path: A2uiDataPath

The absolute JSON pointer path to the data point to update.

value: Any?

The new value to store at the given path. The type must correspond to a standard JSON data type: String, Number, Boolean, null, Map<String, Any?> (for JSON objects), or List<Any?> (for JSON arrays).