Main Content

getAttribute

Class: slreq.Justification
Namespace: slreq

Get justification attributes

Syntax

val = getAttribute(jt, propertyName)

Description

val = getAttribute(jt, propertyName) gets a justification property propertyName of the justification jt.

Input Arguments

expand all

Justification, specified as an slreq.Justification object.

Justification property name.

Example: 'SID', 'CreatedOn', 'Summary'

Examples

Get Justification Attributes

% Load a requirement set file and get the handle to one justification 
rs = slreq.load('C:\MATLAB\My_Requirements_Set_1.slreqx');
jt1 = find(rs, 'Type', 'Justification', 'ID', 'J3.5');

% Get the Summary of jt1
summaryJt1 = getAttribute(jt1, 'Summary')

summaryJt1 = 

  'Requirement Justification'

Version History

Introduced in R2018b

See Also