Options
All
  • Public
  • Public/Protected
  • All
Menu

Module instancehelpers

Index

Functions

abstractUnitJsonToInstance

  • Given some a (normalized) JSON representation of a unit, creates an instance of the corresponding unit.AbstractUnit sub class (structural/model) and populates that from the JSON. Should only be called if this unit was not already in memory.

    Parameters

    Returns AbstractUnit | null

createElement

createNewElementInstanceFromJSON

createUnit

lookupClass

  • Type -> class (the constructor function, technically) lookup, e.g. "DomainModels$Entity" -> DomainModels.Entity

    Parameters

    • qualifiedTypeName: string
    • classes: any

    Returns InstanceConstructor

modelElementJsonToInstance

  • Given some a (normalized) JSON representation of a model element, creates an instance of the corresponding elements.Element and populates that from the JSON. Will update existing elements if this element was created before.

    Parameters

    Returns Element | null

structureAffectsQualifiedNames

  • structureAffectsQualifiedNames(structure: IStructure): boolean
  • Parameters

    Returns boolean

structureIsByNameReferrable

  • structureIsByNameReferrable(structure: IStructure): boolean
  • Parameters

    Returns boolean

Generated using TypeDoc