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

  • new PartProperty(declaredOn: any, parent: Structure, name: string, initialValue: T, ...moreArgs: any[]): PartProperty
  • 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

    • declaredOn: any
    • parent: Structure
    • name: string
    • initialValue: T
    • Rest ...moreArgs: any[]

    Returns PartProperty

Properties

declaredOn

declaredOn: any

handle

handle: function

Type declaration

    • (): void
    • Returns void

Private hasDefaultValue

hasDefaultValue: any

isAvailable

isAvailable: boolean

Returns true if this property is not deleted, and already availabe in the current model version

isPublic

isPublic: boolean

isRequired

isRequired: boolean

name

name: string

observableValue

observableValue: IObservableValue<T>

parent

versionInfo

versionInfo: PropertyVersionInfo

Methods

assertPropertyAvailableInCurrentVersion

  • assertPropertyAvailableInCurrentVersion(): void

assertReadable

  • assertReadable(): void

assertWritable

  • assertWritable(): void

deepCopyInto

  • deepCopyInto(clone: any, idMap: any, unresolvedIdentifierFixers: any): void

dispose

  • dispose(): void

fireOnChange

  • fireOnChange(): void

get

  • get(): T

initialize

  • initialize(value: T, hasDefaultValue: boolean): IObservableValue<T>

onChange

  • onChange(newValue: T, oldValue: T): void

resolveReferences

  • resolveReferences(): void

set

  • set(newValue: T): void

updateElementContainer

  • updateElementContainer(unit: ModelUnit): void

updateWithRawValue

  • updateWithRawValue(value: any): void

Generated using TypeDoc