A2uiCoreDataModel


public interface A2uiCoreDataModel extends AutoCloseable


A storage interface for the JSON data tree.

Summary

Public methods

abstract void

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

abstract Object

Retrieves the value at the given absolute path.

abstract void

Replaces the value at the given absolute path.

Public methods

close

Added in 1.0.0-alpha01
abstract void close()

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

get

Added in 1.0.0-alpha01
abstract Object get(@NonNull A2uiDataPath path)

Retrieves the value at the given absolute path.

Parameters
@NonNull A2uiDataPath path

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

Returns
Object

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
abstract void update(@NonNull A2uiDataPath path, Object value)

Replaces the value at the given absolute path.

Parameters
@NonNull A2uiDataPath path

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

Object value

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).