Skip to main content

IDSSpecifications

Component that manages Information Delivery Specification (IDS) data. It provides functionality for importing, exporting, and manipulating IDS data.

Extends

Methods

create()

create(name, ifcVersion): IDSSpecification

Creates a new IDSSpecification instance and adds it to the list.

Parameters

ParameterTypeDescription
namestringThe name of the IDSSpecification.
ifcVersionIfcVersion[]An array of IfcVersion values that the specification supports.

Returns

IDSSpecification

The newly created IDSSpecification instance.


export()

export(info, specifications): string

Exports the IDSSpecifications data into an XML string.

Parameters

ParameterTypeDescription
infoIDSInfoThe metadata information for the exported XML.
specificationsIterable <IDSSpecification>An optional iterable of IDSSpecification instances to export.
If not provided, all specifications in the list will be exported.

Returns

string

A string containing the exported IDSSpecifications data in XML format.


getFragmentIdMap()

getFragmentIdMap(model, result): object

Retrieves a FragmentIdMap based on the given IDSCheckResult array. The map separates the IDs into two categories: pass and fail.

Parameters

ParameterTypeDescription
modelFragmentsGroupThe FragmentsGroup model from which to retrieve the fragment map.
resultIDSCheckResult[]An array of IDSCheckResult objects, each representing a check result.

Returns

object

An object containing two properties:

  • pass: A FragmentIdMap that passed the checks.
  • fail: A FragmentIdMap that failed the checks.
fail

fail: FragmentIdMap

pass

pass: FragmentIdMap


isConfigurable()

isConfigurable(): this is Configurable<any, any>

Whether is component is Configurable.

Returns

this is Configurable<any, any>

Inherited from

Component . isConfigurable


isDisposeable()

isDisposeable(): this is Disposable

Whether is component is Disposable.

Returns

this is Disposable

Inherited from

Component . isDisposeable


isHideable()

isHideable(): this is Hideable

Whether is component is Hideable.

Returns

this is Hideable

Inherited from

Component . isHideable


isResizeable()

isResizeable(): this is Resizeable

Whether is component is Resizeable.

Returns

this is Resizeable

Inherited from

Component . isResizeable


isUpdateable()

isUpdateable(): this is Updateable

Whether is component is Updateable.

Returns

this is Updateable

Inherited from

Component . isUpdateable


load()

load(data): IDSSpecification[]

Parses and processes an XML string containing Information Delivery Specification (IDS) data. It creates IDSSpecification instances based on the parsed data and returns them in an array. Also, the instances are added to the list array.

Parameters

ParameterTypeDescription
datastringThe XML string to parse.

Returns

IDSSpecification[]

An array of IDSSpecification instances created from the parsed data.