|Download Help (Windows Only)|
An attribute describes a requirement. An attribute has a name and a Boolean, numeric, or string value. An attribute element may define the priority or owner of a requirement. A requirement can have only one attribute with a specific name.
Use attributes and their values to define filters to display only requirements, macro-requirements, entities, sections, or references that meet the conditions you specified on the Filters pane. You can also use the main window to create an attribute and apply it to a requirement without modifying a project document source file.
Use the Attributes tab of the Types pane to specify values for an attribute element you define.
To capture a Priority attribute with possible values of Low, Medium, and High, specify the regular expression Priority=(Low|Medium|High) in the Regular expression control on the Analysis tab of the Types pane. This expression matches Priority=Low, Priority=Medium, or Priority=High.
You can also specify the expression Priority=(.+) in the Regular expression control and define Low, Medium, High as acceptable attribute values on the Attributes tab of the Types pane. In this case, Requirements Gateway still captures anything inserted after the Priority= syntax, but if the captured string does not match the accepted values, Requirements Gateway prompts you with a warning message that the string does not match. National Instruments recommends that you define the list of acceptable attribute values if you are using enumerated attributes.
Alternatively, you can specify the regular expression Priority=(.+) to match the string Priority= and any characters following it. Requirements Gateway captures any strings starting with Priority=, so Requirements Gateway may also capture typing errors or erroneous values.