|
|||||||||
| 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 | |
|---|---|
java.lang.String |
getExpectedLabelsFilename()
|
java.lang.String |
getParamsFilename()
|
java.lang.String |
getReportFilename()
|
void |
init()
Prepare a scan for current options. |
void |
run()
Create a report using current options. |
java.util.SortedMap<java.lang.String,java.util.SortedSet<java.lang.String>> |
scanRequirements()
Does actual tracing (ie. |
java.util.SortedSet<java.lang.String> |
scanUntraceable()
|
void |
setBuildNumber(java.lang.String buildNumber)
Injector. |
void |
setClassLoader(java.lang.ClassLoader classLoader)
Injector. |
void |
setParamsFilename(java.lang.String paramsFilename)
Injector, see init(). |
void |
write(java.util.SortedMap<java.lang.String,java.util.SortedSet<java.lang.String>> codeNamesToLabels,
java.util.SortedSet<java.lang.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 java.lang.String getParamsFilename()
init().public void setParamsFilename(java.lang.String paramsFilename)
init().
public java.lang.String getExpectedLabelsFilename()
init().public java.lang.String getReportFilename()
init().public void setClassLoader(java.lang.ClassLoader classLoader)
public void setBuildNumber(java.lang.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 java.util.SortedMap<java.lang.String,java.util.SortedSet<java.lang.String>> scanRequirements()
Requirements annotations).
java.lang.IllegalStateException - If init() has not been invoked yet.public java.util.SortedSet<java.lang.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.
java.lang.IllegalStateException - Idem as at scanRequirements().
public void write(java.util.SortedMap<java.lang.String,java.util.SortedSet<java.lang.String>> codeNamesToLabels,
java.util.SortedSet<java.lang.String> untraceableTypes)
#setReportFileName(String).
Also reports:
scanUntraceable(). (usually the to do list)
codeNamesToLabels - As returned by scanRequirements().untraceableTypes - As retuned by scanUntraceable().
java.lang.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 | ||||||||