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
,identifier
?):IDSSpecification
Creates a new IDSSpecification instance and adds it to the list.
Parameters
Parameter | Type | Description |
---|---|---|
name | string | The name of the IDSSpecification. |
ifcVersion | IfcVersion [] | An array of IfcVersion values that the specification supports. |
identifier ? | string | - |
Returns
The newly created IDSSpecification instance.
export()
export(
info
,specifications
):string
Exports the IDSSpecifications data into an XML string.
Parameters
Parameter | Type | Description |
---|---|---|
info | IDSInfo | The metadata information for the exported XML. |
specifications | Iterable <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
Parameter | Type | Description |
---|---|---|
model | FragmentsGroup | The FragmentsGroup model from which to retrieve the fragment map. |
result | IDSCheckResult [] | 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
isDisposeable()
isDisposeable():
this is Disposable
Whether is component is Disposable.
Returns
this is Disposable
Inherited from
isHideable()
isHideable():
this is Hideable
Whether is component is Hideable.
Returns
this is Hideable
Inherited from
isResizeable()
isResizeable():
this is Resizeable
Whether is component is Resizeable.
Returns
this is Resizeable
Inherited from
isUpdateable()
isUpdateable():
this is Updateable
Whether is component is Updateable.
Returns
this is Updateable
Inherited from
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
Parameter | Type | Description |
---|---|---|
data | string | The XML string to parse. |
Returns
An array of IDSSpecification instances created from the parsed data.