Options
All
  • Public
  • Public/Protected
  • All
Menu

Model Units

A model unit is a leaf (not a node) in the project tree and the root containing model {@link elements.Element} elements. It is both a(n abstract) unit as well as "model element-like" by virtue of being an MxAbstractElement, but minus the following features of MxElement: public - a model unit is public by nature container - a model unit is itself the root of the tree of elements it contains

A unit acts as scope to resolve by-id references.

Hierarchy

Implemented by

Index

Properties

_container: null | IContainer
internal
_containmentName: string

The name of the property of the parent's type which owns this unit.

internal
_declaredAsNamespace: boolean
internal
_isAttached: boolean
internal
_isDeleted: boolean
internal
_isDetached: boolean
internal
_isLoading: boolean

Whether this unit is currently being loaded.

internal
_isNew: boolean
internal

The {@link modelstore.IModelStore model store} holding the Mendix model this unit abides in.

internal
container: IStructuralUnit

The parent unit of this unit.

id: string
isLoadable: boolean

Whether this unit and all of its children (recursively) can be loaded.

isLoaded: boolean

Whether this unit has been completely loaded and does not consist of the unit's interface (which corresponds to the unit being partial).

isReadOnly: boolean

Whether this unit and all of its children (recursively) are editable.

structureTypeName: string

Unit that owns/contains this thing.

internal

Methods

  • _deleteInternal(): void
  • _getQualifiedName(): null | string
  • _markLoaded(): void
  • _markLoading(): void
  • _markNotLoaded(): void
  • _registerAfterLoadCallback(callback: (unit: IAbstractUnit) => void): void
  • delete(): void
  • resolveByIdReferences(): void
  • toJSON(): object
  • Renders the structure as plain JSON (without observables magic). This is intended for debugging and development convenience. Note that the resulting object is not of the interface type corresponding to this structure.

    Returns object

  • traverse(visit: (structure: IStructure) => void): void
  • Traverses this structure by calling the provided visitor function on itself and all the structures contained (as part) by it, in depth-first order, and it returns synchronously after that.

    Parameters

    Returns void

  • traverseFind<T>(visit: (structure: IStructure) => T): null | T
  • traversePublicParts(visit: (structure: IStructure) => void): void

Generated using TypeDoc