Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PartProperty<T>

A property value that is a (model) element. Will detect when children are moved, added, deleted and sends the appropriate deltas.

Type parameters

Hierarchy

Index

Constructors

constructor

  • parent is the structure that the value of this property attaches to, so e.g. for all values item of Part(List)Property we (should) have the invariant: item.container === this.parent.

    initialValue is default value except parts and GUID-typed primitives. (by-id/name references do not have default values.)

    Parameters

    Returns PartProperty

Properties

declaredOn

declaredOn: IStructureClass

disposer

disposer: function | undefined

hasDefaultValue

hasDefaultValue: boolean

isAvailable

isAvailable: boolean

isPublic

isPublic: boolean

isRequired

isRequired: boolean

name

name: string

observableValue

observableValue: IObservableValue

parent

versionInfo

versionInfo: PropertyVersionInfo

Methods

deepCopyInto

detachValue

  • detachValue(): void
  • Returns void

dispose

  • dispose(): void

get

  • get(): T | null

reportAvailabilityIssues

  • reportAvailabilityIssues(): void

set

  • set(newValue: T | null): void
  • Parameters

    • newValue: T | null

    Returns void

updateElementContainer

  • updateElementContainer(unit: ModelUnit): void

updateWithRawValue

Generated using TypeDoc