Feature protocols for metadata, configuration and validation.

IConfig

Available since version 1.0 (view source)

PROTOCOL with method -config

A feature protocol for configured objects.

See also: config

-config

Available since version 1.0 (view source)

not referred automatically

Usage:
  • (-config this)

Type signature:
  • (Any) → KeywordMap

Returns a configuration attached to this object.

See also: IConfig

IMeta

Available since version 1.0 (view source)

PROTOCOL with method -meta

extensions of this protocol on existing types are forbidden (performance and/or backwards compatibility reasons).

A feature protocol for objects carying metadata.

See also: meta

-meta

Available since version 1.0 (view source)

not referred automatically

Usage:
  • (-meta this)

Type signature:
  • (Any) → KeywordMap

Returns metadata map attached to this.

See also: IMeta

IMutableConfig

Available since version 1.0 (view source)

not referred automatically

PROTOCOL with method -config-ref

A feature protocol for mutable configuration.

-config-ref

Available since version 1.0 (view source)

not referred automatically

Usage:
  • (-config-ref this)

Type signature:
  • (Any) → (I IMutable IReference)

Returns mutable reference to object’s configuration.

See also: IMutableConfig

IMutableMeta

Available since version 1.0 (view source)

not referred automatically

PROTOCOL with method -meta-ref

A feature protocol for objects with mutable metadata.

See also: IMeta, IPersistentMeta

-meta-ref

Available since version 1.0 (view source)

not referred automatically

Usage:
  • (-meta-ref this)

Type signature:
  • (Any) → (I IMutable IReference)

Returns mutable reference to object’s metadata.

See also: IMutableMeta

IPersistentConfig

Available since version 1.0 (view source)

not referred automatically

PROTOCOL with method -assoc-config

A feature protocol for objects with persistent configuration.

See also: IConfig, IMutableConfig

-assoc-config

Available since version 1.0 (view source)

not referred automatically

Usage:
  • (-assoc-config this conf)

Type signature:
  • (Any ⨯ KeywordMap) → IPersistentConfig

Returns this with conf object associated as its configuration.

See also: IPersistentConfig

IPersistentMeta

Available since version 1.0 (view source)

not referred automatically

PROTOCOL with method -assoc-meta

extensions of this protocol on existing types are forbidden (performance and/or backwards compatibility reasons).

A feature protocol for objects with persistent metadata.

See also: IMeta, IMutableMeta

-assoc-meta

Available since version 1.0 (view source)

not referred automatically

Usage:
  • (-assoc-meta this m)

Type signature:
  • (Any ⨯ KeywordMap) → IPersistentMeta

Returns this with m associated as object’s metadata.

See also: IPersistentMeta

IValidator

Available since version 1.0 (view source)

not referred automatically

PROTOCOL with method -validator

A feature protocol for objects that can be validated.

See also: validable?, validator

-validator

Available since version 1.0 (view source)

not referred automatically

Usage:
  • (-validator this)

Type signature:
  • (Any) → (I IMutable IReference)

Returns mutable reference to the current validator fn. Referenced value is nil if no validator is set.

See also: IValidator