Skip to main content

IDSSpecification

Represents a single specification from the Information Delivery Specification (IDS) standard.

Remarks

This class provides methods for testing a model against the specification, as well as serializing the specification into XML format.

Methods

serialize()

serialize(): string

Serializes the IDSSpecification instance into XML format.

Returns

string

The XML representation of the IDSSpecification.

Remarks

This method is not meant to be used directly. It is used by the IDSSpecifications component.


test()

test(model): Promise <IDSCheckResult[]>

Tests the model to test against the specification's requirements.

Parameters

ParameterTypeDescription
modelFragmentsGroupThe model to be tested.

Returns

Promise <IDSCheckResult[]>

An array representing the test results. If no requirements are defined for the specification, an empty array is returned.