Documentation
    Preparing search index...

    Unique global reference system for all Quatrain models. Used for backend identification and cross-system relational links.

    Index

    Constructors

    • Creates a new ObjectUri instance from a path string. ex: 'xyz', '@backend:xyz', 'collection/xyz', '@backend:collection/xyz'

      Parameters

      • str: string = ''

        Partial or full resource path.

      • label: string | undefined = ''

        Optional label describing the resource path.

      Returns ObjectUri

    Properties

    _backend: string | undefined

    Target backend identifier.

    _collection: string | undefined = undefined

    Collection name context.

    _label: string | undefined = ''

    Human-readable label representation.

    _literal: string = ''

    The literal representation including backend name.

    _objClass: any

    Object model class reference.

    _pairs: string[] = []

    Split pairs of path segments.

    _parent: ObjectUri | undefined

    Parent ObjectUri context.

    _path: string = ObjectUri.DEFAULT

    Standardized path.

    _str: string

    Internal string representation.

    _uid: string | undefined = undefined

    Unique resource ID.

    DEFAULT: string = '/'

    Root path divider.

    MISSING_COLLECTION: string = '_?_'

    Placeholder used when collections cannot be guessed.

    Accessors

    • get backend(): string | undefined

      Retrieves the target backend alias.

      Returns string | undefined

      The backend identifier, or undefined if not set.

    • get class(): any

      Retrieves the model class bound to the URI.

      Returns any

      The model class reference.

    • set class(objClass: any): void

      Binds a model class reference to resolve collection details.

      Parameters

      • objClass: any

        The model constructor class.

      Returns void

    • get collection(): string | undefined

      Retrieves the collection or table name context.

      Returns string | undefined

      The collection name, or undefined.

    • set collection(collection: string | undefined): void

      Injects a specific collection or table context name.

      Parameters

      • collection: string | undefined

        The target collection name.

      Returns void

    • get label(): string | undefined

      Retrieves the human-readable label representation.

      Returns string | undefined

      The descriptive label, or undefined.

    • set label(label: string | undefined): void

      Sets the human-readable label representation.

      Parameters

      • label: string | undefined

        The descriptive string label.

      Returns void

    • get literal(): string

      Return the full path literal, including the backend alias.

      Returns string

      The fully qualified URI literal.

    • get ownPath(): string

      Returns the own path of the resource without the optional parents' paths.

      Returns string

      The own path segment string.

    • get parent(): ObjectUri | undefined

      Retrieves the parent ObjectUri context.

      Returns ObjectUri | undefined

      The parent ObjectUri reference, or undefined.

    • get path(): string

      Returns the full path of the resource, including optional parents' paths.

      Returns string

      The computed path string.

    • set path(path: string): void

      Overwrites the path and automatically recalculates collection details.

      Parameters

      • path: string

        The new relative path segment.

      Returns void

    • get uid(): string | undefined

      Retrieves the unique identifier of the resource.

      Returns string | undefined

      The unique ID string.

    Methods

    • Output pure object dictionary representation.

      Returns any

      Rendered JSON-like URI block representation.

    • Returns references to locate the target object locally and remotely.

      Returns { label: string | undefined; ref: string; uri: string }

      An object detailing path, uri literal, and label.