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

Package registry

This package contains 10 source unit(s) defining 10 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 3.0 (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
LEGACY_OBJECT_WINDOWstatic final int LEGACY_OBJECT_WINDOW = 8Eight direct object slots remain as the legacy display window. The complete membership index is the growable string-reference list.
versionString versionNo description in source.
countint countNo description in source.
keyPathsSLList keyPathsNo 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.
keyPathAtString keyPathAt(int idx)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.

SLRegistryIdentity #sleela 3.0 (lib/registry/SLRegistryIdentity.sleela)

SLRegistryIdentity class

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
idString idNo description in source.
nameSpaceString nameSpaceNo description in source.
kindString kindNo description in source.
schemaVersionString schemaVersionNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
configurevoid configure(String stableId, String ns, String recordKind, String schema)No description in source.
presentboolean present()No description in source.

SLRegistryKey #sleela 3.0 (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
LEGACY_OBJECT_WINDOWstatic final int LEGACY_OBJECT_WINDOW = 8Eight object references remain as the legacy display window. A growable string list indexes all names for native record resolution.
pathString pathfull key path, e.g. "Settings"
countint countlive values
valueNamesSLList valueNamesNo description in source.
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)
valueNameAtString valueNameAt(int idx)No description in source.
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.

SLRegistryLifecycle #sleela 3.0 (lib/registry/SLRegistryLifecycle.sleela)

SLRegistryLifecycle class

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
stateString stateNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
configurevoid configure(String initialState)No description in source.
permitsboolean permits(String next)No description in source.

SLRegistryProvenance #sleela 3.0 (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.

SLRegistryRecord #sleela 3.0 (lib/registry/SLRegistryRecord.sleela)

SLRegistryRecord class

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
idString idNo description in source.
nameSpaceString nameSpaceNo description in source.
kindString kindNo description in source.
schemaVersionString schemaVersionNo description in source.
nameString nameNo description in source.
stateString stateNo description in source.
locatorString locatorNo description in source.
versionString versionNo description in source.
contentDigestString contentDigestNo description in source.
payloadKindString payloadKindNo description in source.
payloadString payloadNo description in source.
integrityStatusString integrityStatusNo description in source.
revisionlong revisionNo description in source.
capacityByteslong capacityBytesNo description in source.
ownerLabelString ownerLabelNo description in source.
formatVersionString formatVersionNo description in source.
deviceSealString deviceSealNo description in source.
aliasesSLList aliasesNo description in source.
relationshipIdsSLList relationshipIdsNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
configurevoid configure(String recordId, String ns, String recordKind, String displayName)No description in source.
identifiedboolean identified()No description in source.
hasIntegrityEvidenceboolean hasIntegrityEvidence()No description in source.

SLRegistryRelationship #sleela 3.0 (lib/registry/SLRegistryRelationship.sleela)

SLRegistryRelationship class

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
typeString typeNo description in source.
targetIdString targetIdNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
configurevoid configure(String relationshipType, String stableTargetId)No description in source.
completeboolean complete()No description in source.

SLRegistryResolver #sleela 3.0 (lib/registry/SLRegistryResolver.sleela)

SLRegistryResolver class

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
recordIdString recordIdNo description in source.
statusString statusNo description in source.
locatorString locatorNo description in source.
reasonString reasonNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
configurevoid configure(String id)No description in source.
resolvedboolean resolved()No description in source.
isResolvedReferenceboolean isResolvedReference()No description in source.

SLRegistryReview #sleela 3.0 (lib/registry/SLRegistryReview.sleela)

SLRegistryReview class

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
recordCountint recordCountNo description in source.
relationshipCountint relationshipCountNo description in source.
verifiedCountint verifiedCountNo description in source.
quarantinedCountint quarantinedCountNo description in source.
reportString reportNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
resetvoid reset()No description in source.
setReportvoid setReport(String value)No description in source.

SLRegistryValue #sleela 3.0 (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.