javarequirementstracer
Annotation Type Requirements


@Target(value={TYPE,METHOD,CONSTRUCTOR})
@Retention(value=RUNTIME)
public @interface Requirements

Use this annotation to annotate your code with requirements labels for traceability purposes.

Guidelines:

Reporting (see JavaRequirementsTracer):

Author:
Ronald Koster

Required Element Summary
 java.lang.String[] value
          The set of requirement labels implemented by annotated class, method or constructor.
 

Element Detail

value

public abstract java.lang.String[] value
The set of requirement labels implemented by annotated class, method or constructor.

Requirements labels refer to requirements documents. Usually Use Cases (UCs) or Supplementary Specifications (SuppSpecs). They can refer to a whole document (doc) or only a part of it. In the latter case the requirements document itself is usually annotated (aka. tagged) with detail labels (aka. tags) in the text itself, which can be used directly as requirements labels. The format of the tags used should be as agreed with the requirements specifiers.

Examples:

WARNING: Do NOT incorporate requirements document version info in the labels (bad practice). Instead, in case different labels are needed to mark different requirements in different versions, use tags (as described above) in the requirements document itself to uniquely mark those requirements. Also, never reuse a label/tag for another requirement. A new requirement should always get a new label/tag, to ensure the uniqueness of all labels/tags.



Copyright © 2010. All Rights Reserved.