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

createElement

  • createElement(owner: any, constructor: elements.IElementConstructor, parentPropName?: string, parentPropIsList?: boolean): any
  • Creates a new element for a SDK user.

    Parameters

    • owner: any
    • constructor: elements.IElementConstructor
    • Optional parentPropName: string
    • Optional parentPropIsList: boolean

    Returns any

createUnit

  • createUnit(container: IStructuralUnit, constructor: units.IAbstractUnitConstructor): any
  • Creates a new unit for a SDK user.

    Parameters

    Returns any

lookupClass

  • lookupClass(qualifiedTypeName: string, classes: any): any
  • Type -> class (the constructor function, technically) lookup, e.g. "DomainModels$Entity" -> DomainModels.Entity

    Parameters

    • qualifiedTypeName: string
    • classes: any

    Returns any

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

structureAffectsQualifiedNames

  • structureAffectsQualifiedNames(structure: Structure): boolean
  • Parameters

    Returns boolean

Generated using TypeDoc