SleelaDoc API
HTML documentation for the SLeeLa standard library (/lib)
Home › Packages › registry

Package registry

This package contains 4 source unit(s) defining 4 class(es) / struct(s). Each unit below lists its fields (the values it stores) and methods (the actions it performs), with a plain explanation of each.

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.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
MAX_KEYSstatic final int MAX_KEYS = 64No description in source.
versionString versionNo description in source.
countint countNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
bootvoid boot()No description in source.
addKeyboolean addKey(SLRegistryKey k)No description in source.
keyAtSLRegistryKey keyAt(int idx)No description in source.
seedDefaultsvoid seedDefaults()Seed the baseline a new install starts from (mirrors sl_reg_seed_defaults): System, System/VM, Settings, Features, Artifacts.
featureEnabledboolean featureEnabled(String name)No description in source.
showvoid show()Terminal review (mirrors sl_reg_review).
mainvoid 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.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
MAX_VALUESstatic final int MAX_VALUES = 8No description in source.
pathString pathfull key path, e.g. "Settings"
countint countlive values
hasProvenanceint hasProvenanceNo description in source.
provenanceSLRegistryProvenance provenanceNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
configurevoid configure(String keyPath)No description in source.
addboolean add(SLRegistryValue val)append a value (numbered-field store in place of an array)
valueAtSLRegistryValue valueAt(int idx)No description in source.
attachProvenancevoid attachProvenance(SLRegistryProvenance p)No description in source.
trackedboolean tracked()No description in source.
showvoid 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.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
nameString nametracked file name
dateString dateISO-8601 recorded date/time
authorString authorauthoring party
versionString versionartifact version
hexIdString hexId16 hex chars, stable identity
hashString hashSHA-256 of the file content (64 hex)
sealString sealoriginality seal (64 hex)

Methods — the actions this unit can perform.

MethodSignatureWhat it does
configurevoid configure(String fileName, String recordedDate, String by,No description in source.
sealInputString sealInput()The seal input: the four identity-and-content fields, order fixed.
setSealvoid setSeal(String computed)The host computes SHA-256 of sealInput() and sets it here (native bridge).
isSealedboolean isSealed()No description in source.
verifyboolean 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.
renderString 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.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
KIND_STRINGstatic final int KIND_STRING = 0No description in source.
KIND_INTstatic final int KIND_INT = 1No description in source.
KIND_BOOLstatic final int KIND_BOOL = 2No description in source.
nameString nameNo description in source.
kindint kindNo description in source.
sString swhen KIND_STRING
iint iwhen KIND_INT
bint bwhen KIND_BOOL (0/1)

Methods — the actions this unit can perform.

MethodSignatureWhat it does
setStringvoid setString(String n, String value)No description in source.
setIntvoid setInt(String n, int value)No description in source.
setBoolvoid setBool(String n, boolean value)No description in source.
isStringboolean isString()No description in source.
isIntboolean isInt()No description in source.
isBoolboolean isBool()No description in source.
renderString render()No description in source.