Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ByIdReferenceProperty<T>

Property value that references a (model) element by id.

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

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

    Returns ByIdReferenceProperty

Properties

declaredOn

declaredOn: any

handle

handle: function

Type declaration

    • (): void
    • Returns void

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: ByIdReference<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

onChange

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

resolveReferences

  • resolveReferences(): void

set

  • set(value: T): void

updateElementContainer

  • updateElementContainer(): void
  • Returns void

updateWithRawValue

  • updateWithRawValue(value: string): void

Generated using TypeDoc