|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavarequirementstracer.JavaRequirementsTracerBean
public final class JavaRequirementsTracerBean
Class for generating a traceablity report. It scans for Requirements annotations.
init()| Constructor Summary | |
|---|---|
JavaRequirementsTracerBean()
|
|
| Method Summary | |
|---|---|
String |
getExpectedLabelsFilename()
|
String |
getParamsFilename()
|
String |
getReportFilename()
|
void |
init()
Prepare a scan for current options. |
void |
run()
Create a report using current options. |
SortedMap<String,SortedSet<String>> |
scanRequirements()
Does actual tracing (ie. |
SortedSet<String> |
scanUntraceable()
|
void |
setBuildNumber(String buildNumber)
Injector. |
void |
setClassLoader(ClassLoader classLoader)
Injector. |
void |
setParamsFilename(String paramsFilename)
Injector, see init(). |
void |
write(SortedMap<String,SortedSet<String>> codeNamesToLabels,
SortedSet<String> untraceableTypes)
Write scanned traceability map to the report file indicated by #setReportFileName(String). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JavaRequirementsTracerBean()
| Method Detail |
|---|
public String getParamsFilename()
init().public void setParamsFilename(String paramsFilename)
init().
public String getExpectedLabelsFilename()
init().public String getReportFilename()
init().public void setClassLoader(ClassLoader classLoader)
public void setBuildNumber(String buildNumber)
buildNumber - the buildnumber.public void init()
current options.
UncheckedException - Wrapper around FileNotFoundException IOException,
in case loading the properties from setParamsFilename(String) or
#setExpectedLabelsFilename(String) throws such an exception.public void run()
current options.
UncheckedException - Idem as at init().public SortedMap<String,SortedSet<String>> scanRequirements()
Requirements annotations).
IllegalStateException - If init() has not been invoked yet.public SortedSet<String> scanUntraceable()
Requirements, nor with SuppressTraceabilityWarnings,
nor having a supertype annotated with Requirements.
NB. Having a supertype annotated with SuppressTraceabilityWarnings will
not exclude it from the untraceable report. This is because many Use Case specific service
implementations may implement a general technical (thus annotated with
SuppressTraceabilityWarnings) interface.
IllegalStateException - Idem as at scanRequirements().
public void write(SortedMap<String,SortedSet<String>> codeNamesToLabels,
SortedSet<String> untraceableTypes)
#setReportFileName(String).
Also reports:
scanUntraceable(). (usually the to do list)
codeNamesToLabels - As returned by scanRequirements().untraceableTypes - As retuned by scanUntraceable().
RuntimeException - Wrapper around IOException, in case writing to the report file
throws such an exception.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||