Documentation
    Preparing search index...

    Class AbstractObjectAbstract

    Foundational wrapper for interacting with properties dynamically.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    _dataObject: DataObjectClass<any>
    COLLECTION: string | undefined

    The backend identifier (table or collection name) representing this class.

    LABEL_KEY: string = 'name'

    Which property's value to use in backend as label for object reference

    PARENT_PROP: string | undefined

    The name of the property handling hierarchical parent relationships.

    PROPS_DEFINITION: DataObjectProperties = []

    Array defining the structure and constraints of properties belonging to this model.

    Accessors

    • get _(): any

      Returns any

    • get path(): string

      Returns string

    • get uid(): any

      Returns any

    • get uri(): ObjectUri

      Returns ObjectUri

    Methods

    • Return property object matching key

      Parameters

      • key: string

        string

      Returns any

    • Checks if a property exists on the data object.

      Parameters

      • key: string

        The property key.

      Returns boolean

      True if the property exists.

    • Proxies a set command to the underlying data object.

      Parameters

      • key: string

        The property key.

      • val: any

        The value to assign.

      Returns any

      The DataObject instance for chaining.

    • Serializes the current object path / identity.

      Returns any

      The JSON serialized ObjectUri.

    • Fetches the value of a property.

      Parameters

      • key: string

        The property key.

      Returns any

      The property value or null if undefined.