Main Content

remove

Class: slreq.Justification
Namespace: slreq

Remove justification items

Syntax

count = remove(jt, 'PropertyName', PropertyValue)

Description

count = remove(jt, 'PropertyName', PropertyValue) removes child justification items belonging to the parent justification jt with additional properties specified by PropertyName and PropertyValue. Returns the number of items removed as count.

Input Arguments

expand all

Parent justification, specified as an slreq.Justification object.

Output Arguments

expand all

Number of justification items removed, returned as a double.

Examples

Remove Justification Items

Load a requirement set file.

rs = slreq.load('C:\MATLAB\My_Requirements_Set_1.slreqx');
Find justification objects in the requirement set.
myJustifications = find(rs, 'Type', 'Justification')
myJustifications = 

  1×10 Justification array with properties:

    Id
    Summary
    Description
    Keywords
    Rationale
    CreatedOn
    CreatedBy
    ModifiedBy
    SID
    FileRevision
    ModifiedOn
    Dirty
    Comments
Remove one of the justification objects that was created by Jane Doe.
count = remove(myJustifications(1), 'CreatedBy', 'Jane Doe')
count = 
  
  1

Version History

Introduced in R2018b

See Also