Skip to main content

Class: XMLWarningFactory

Defined in: src/sdk/components/Warnings/XMLWarningAdapter.ts:7

Create a list of system warnings.

Constructors​

Constructor​

new XMLWarningFactory(instrument): XMLWarningFactory

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

Create an XMLWarningFactory.

Parameters​

ParameterTypeDescription
instrumentBaseInstrumentThe instrument that the warnings run in.

Returns​

XMLWarningFactory

Methods​

parseConfig()​

parseConfig(document): Warning[]

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

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​

ParameterTypeDescription
documentDocumentThe configuration as an XML document.

Returns​

Warning[]

An array of Warnings