Options
All
  • Public
  • Public/Protected
  • All
Menu

Class XMIDecoder

Hierarchy

  • XMIDecoder

Index

Constructors

constructor

Properties

Private decodingErrors

decodingErrors: Set<Error> = new Set()

Private fetchService

fetchService: FetchService

Private logService

logService: LogService

Private promises

promises: Array<Promise<Element>>

Private resolvedMap

resolvedMap: WeakMap<ResolvedXMINode, Element>

Private unsupportedTypeNames

unsupportedTypeNames: Set<string> = new Set()

Private unsupportedTypeURIs

unsupportedTypeURIs: Set<string> = new Set()

Private visitors

visitors: Map<string, Map<string, Visitor>>

Private xmiResolver

xmiResolver: XMIResolver

Methods

decodeNode

getResolvedElements

  • getResolvedElements(): Promise<Element[]>

Private getVisitor

  • getVisitor(typeURI: string, typeName: string): Visitor | null

loadNodeByType

  • loadNodeByType(typeURI: string, typeName: string): Promise<ModelElement>

loadStdin

  • loadStdin(): Promise<XMI>

loadURL

  • loadURL(url: string, encoding?: string): Promise<XMI>
  • Loads a model from an URL

    Parameters

    • url: string

      URL where the file to decode can be found

    • Default value encoding: string = "utf8"

    Returns Promise<XMI>

    Promise for a model element

loadURLs

  • loadURLs(...urls: string[]): Promise<XMI | null>

printErrors

  • printErrors(): void

registerModel

  • registerModel(__namedParameters: object): void

Generated using TypeDoc