Package registry
SLRegistry #sleela 2.5 (lib/registry/SLRegistry.sleela)
SLRegistry class
Defines SLRegistry — the OOD equivalent of the native Sleela Registry (registry/sleela_registry.*): a Windows-style hierarchical store of keys (an HKEY-like path tree), each holding settings and feature-flag values and, where relevant, a sealed provenance record (file/date/author/ version/hex-id/hash/originality-seal). A fresh SLeeLa install seeds a baseline registry that is reviewable from a terminal (sleela registry) or a Sleela terminal program. Persistence and SHA-256/seal computation cross the native bridge; this class is the Sleela-side model + review. Mirrors: sl_reg_create, seed_defaults, key_create, the set_* family, provenance_set, save, load, and review. The native OP for a registry service is reserved for a future opcode; today the terminal 'sleela registry' is the review surface. Family: registry. Composes SLRegistryKey, SLRegistryValue, SLRegistryProvenance.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
MAX_KEYS | static final int MAX_KEYS = 64 | No description in source. |
version | String version | No description in source. |
count | int count | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
boot | void boot() | No description in source. |
addKey | boolean addKey(SLRegistryKey k) | No description in source. |
keyAt | SLRegistryKey keyAt(int idx) | No description in source. |
seedDefaults | void seedDefaults() | Seed the baseline a new install starts from (mirrors sl_reg_seed_defaults): System, System/VM, Settings, Features, Artifacts. |
featureEnabled | boolean featureEnabled(String name) | No description in source. |
show | void show() | Terminal review (mirrors sl_reg_review). |
main | void main() | No description in source. |
SLRegistryKey #sleela 2.5 (lib/registry/SLRegistryKey.sleela)
SLRegistryKey class
Defines SLRegistryKey — the OOD equivalent of a native registry key (a node in the HKEY-style path tree). A key is named by its full path ("A/B/C"), holds a bounded set of SLRegistryValue entries (settings and feature flags), and may carry one SLRegistryProvenance record. The surface has no arrays, so the value set is numbered fields (the SLVM binding-table convention). Mirrors: the native RegKey (path + values + optional provenance). Family: registry. Composes SLRegistryValue, SLRegistryProvenance; held by SLRegistry.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
MAX_VALUES | static final int MAX_VALUES = 8 | No description in source. |
path | String path | full key path, e.g. "Settings" |
count | int count | live values |
hasProvenance | int hasProvenance | No description in source. |
provenance | SLRegistryProvenance provenance | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(String keyPath) | No description in source. |
add | boolean add(SLRegistryValue val) | append a value (numbered-field store in place of an array) |
valueAt | SLRegistryValue valueAt(int idx) | No description in source. |
attachProvenance | void attachProvenance(SLRegistryProvenance p) | No description in source. |
tracked | boolean tracked() | No description in source. |
show | void show() | No description in source. |
SLRegistryProvenance #sleela 2.5 (lib/registry/SLRegistryProvenance.sleela)
SLRegistryProvenance class
Defines SLRegistryProvenance — the OOD equivalent of a native registry provenance record (registry/sleela_registry.* struct sl_reg_provenance). It makes a registry entry self-describing and verifiable: the tracked file's name, date, author, version, a stable hex id, the SHA-256 of its content, and an ORIGINALITY SEAL. The seal is a SHA-256 over (hexId | version | hash | author); if any of those is altered, verify() reports the seal broken. The actual hashing crosses the native bridge (the host computes SHA-256); this class is the record + seal check. Mirrors: sl_reg_provenance + sl_reg_seal/sl_reg_seal_verify. Family: registry. Attached to an SLRegistryKey.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
name | String name | tracked file name |
date | String date | ISO-8601 recorded date/time |
author | String author | authoring party |
version | String version | artifact version |
hexId | String hexId | 16 hex chars, stable identity |
hash | String hash | SHA-256 of the file content (64 hex) |
seal | String seal | originality seal (64 hex) |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(String fileName, String recordedDate, String by, | No description in source. |
sealInput | String sealInput() | The seal input: the four identity-and-content fields, order fixed. |
setSeal | void setSeal(String computed) | The host computes SHA-256 of sealInput() and sets it here (native bridge). |
isSealed | boolean isSealed() | No description in source. |
verify | boolean verify(String expected) | Verify requires the host to recompute SHA-256(sealInput()) and compare. expected = that recomputation; returns true if it matches the stored seal. |
render | String render() | No description in source. |
SLRegistryValue #sleela 2.5 (lib/registry/SLRegistryValue.sleela)
SLRegistryValue class
Defines SLRegistryValue — the OOD equivalent of a native registry value (registry/sleela_registry.* : a name -> typed scalar). A value holds one setting or feature flag under a key: a string, an int, or a boolean, tagged by kind. It is the leaf the registry stores and the terminal review renders. Pure data + accessors; the native store owns persistence. Mirrors: enum sl_reg_kind (STRING/INT/BOOL) and the value cell. Family: registry. Composed by SLRegistryKey.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
KIND_STRING | static final int KIND_STRING = 0 | No description in source. |
KIND_INT | static final int KIND_INT = 1 | No description in source. |
KIND_BOOL | static final int KIND_BOOL = 2 | No description in source. |
name | String name | No description in source. |
kind | int kind | No description in source. |
s | String s | when KIND_STRING |
i | int i | when KIND_INT |
b | int b | when KIND_BOOL (0/1) |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
setString | void setString(String n, String value) | No description in source. |
setInt | void setInt(String n, int value) | No description in source. |
setBool | void setBool(String n, boolean value) | No description in source. |
isString | boolean isString() | No description in source. |
isInt | boolean isInt() | No description in source. |
isBool | boolean isBool() | No description in source. |
render | String render() | No description in source. |