Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PrimitiveProperty<T>

Type parameters

  • T

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 PrimitiveProperty

Properties

declaredOn

declaredOn: any

Private defaultValue

defaultValue: 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: IObservableValue<T>

parent

parent: Structure

Private primitiveType

primitiveType: any

versionInfo

versionInfo: PropertyVersionInfo

Methods

assertPropertyAvailableInCurrentVersion

  • assertPropertyAvailableInCurrentVersion(): void

assertReadable

  • assertReadable(): void

assertWritable

  • assertWritable(): void

deepCopyInto

  • deepCopyInto(clone: any): void

dispose

  • dispose(): void

fireOnChange

  • fireOnChange(): void

get

  • get(): T

initialize

markCurrentValueAsDefault

  • markCurrentValueAsDefault(): void
  • Returns void

onChange

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

resolveReferences

  • resolveReferences(): void

set

  • set(newValue: T): void

updateWithRawValue

  • updateWithRawValue(value: T): void

Generated using TypeDoc