Skip to main content

Class: XMLWarningFactory

Create a list of system warnings.

Constructors

constructor

new XMLWarningFactory(instrument): XMLWarningFactory

Create an XMLWarningFactory.

Parameters

NameTypeDescription
instrumentBaseInstrumentThe instrument that the warnings run in.

Returns

XMLWarningFactory

Defined in

src/sdk/components/Warnings/XMLWarningAdapter.ts:14

Methods

parseConfig

parseConfig(document): Warning[]

Parse a panel.xml configuration to create a list of warnings. The warning priority is defined by their order in panel.xml, with higher priority warnings coming sooner in the file.

Parameters

NameTypeDescription
documentDocumentThe configuration as an XML document.

Returns

Warning[]

An array of Warnings

Defined in

src/sdk/components/Warnings/XMLWarningAdapter.ts:25