dot big bang

Developer API
Menu

Class SkeletalObjectRef

All
  • Public
  • Public/Protected
  • All

Hierarchy

Index

Constructors

Accessors

Methods

Constructors

constructor

Accessors

id

  • get id(): string
  • Returns the id of the Resource this ResourceRef points to. If this ResourceRef not set to anything, the id is the empty string.

    Returns string

type

  • Returns the type of Resource that this ResourceRef can point to.

    Returns ResourceType

Methods

clone

  • Returns a new ResourceRef object that's a copy of this one. Note that what gets cloned here is just the ResourceRef object (i.e. the indirection to a Resource). The underlying Resource, if any, isn't duplicated/cloned.

    Returns SkeletalObjectRef

copy

exists

  • exists(): boolean
  • Returns true if this ResourceRef points to a Resource, false if it wasn't set to point to anything.

    Returns boolean

get

  • Returns the Resource pointed to by this ResourceRef or null if it wasn't set.

    Returns null | SkeletalObject

set

  • Sets this ResourceRef to point to the provided Resource. If it is set to null, this ResourceRef is cleared and won't point to anything.

    Parameters

    Returns void