Main Content

slreq.callback.CustomImportOptions Class

Namespace: slreq.callback

Custom import options

Since R2022a

Description

Use objects of the slreq.callback.CustomImportOptions class to adjust the options to use when import requirements. When you import requirements from a custom third-party document, slreq.getCurrentImportOptions generates an slreq.callback.CustomImportOptions object that you can use to adjust the options to use during import. You can only access this object in the PreImportFcn callback.

The slreq.callback.CustomImportOptions class is a handle class.

Creation

options = slreq.getCurrentImportOptions returns an slreq.callback.CustomImportOptions object if you import requirements from a custom third-party document.

Properties

expand all

External attribute mapped to the Rationale property, specified as a string scalar or character vector.

Example: myImportOptions.Rationale = "Requirement rationale";

Attributes:

GetAccess
public
SetAccess
public

External attribute mapped to the Keywords property, specified as a string scalar or character vector.

Example: myImportOptions.Keywords = "Requirement keywords";

Attributes:

GetAccess
public
SetAccess
public

External attributes to import as custom attributes, specified as a cell array.

Example: myImportOptions.Attributes = {'Priority','Status'};

Attributes:

GetAccess
public
SetAccess
public

Filter condition to apply during import, specified as a string scalar or a character vector.

Example: myImportOptions.Filter = "AttributeName==Value";

Attributes:

GetAccess
public
SetAccess
public

Option to import as slreq.Reference objects, specified as a 1 or 0 of data type logical. If 0, requirements import as slreq.Requirement objects.

Attributes:

GetAccess
public
SetAccess
public

Option to import requirements with rich text, specified as a 1 or 0 of data type logical.

Attributes:

GetAccess
public
SetAccess
public

Resource identifier for external requirements document, specified as a string scalar or character vector.

Attributes:

GetAccess
public
SetAccess
public

Requirements document custom link type, returned as a string scalar or character vector.

Attributes:

GetAccess
public
SetAccess
private

Requirement set name, returned as a character vector.

Attributes:

GetAccess
public
SetAccess
private

Contents of the PreImportFcn callback for the current Import node, specified as a string scalar or a character vector.

Attributes:

GetAccess
public
SetAccess
public

Contents of the PostImportFcn callback for the current Import node, specified as a string scalar or a character vector.

Attributes:

GetAccess
public
SetAccess
public

Version History

Introduced in R2022a