|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jcoderz.phoenix.report.GenericReportReader
public final class GenericReportReader
Reads reports with format definitions described in the
finding-type-format-definition.xds.
To find the finding type format definition for requested format
the following locations are used:
The name is converted to lower case.
A file name.xml is searched in the
org.jcoderz.phoenix.report.ftf package. If
this is not found the file is searched in the ftf
directory. The directory must be available through the classpath.
| Method Summary | |
|---|---|
Item |
detectFindingTypeForMessage(String message)
Reads the given message and tries to find a matching finding type. |
static GenericReportReader |
initialize(Origin findingType)
Initializes the selected finding type. |
void |
merge(Map<ResourceInfo,List<Item>> items)
Merges the items of the input report as a Map of filename string and of the type Item (org.jcoderz.phoenix.report.jaxb.Item) into the given item Map. |
void |
parse(File f)
Parses the report file/directory. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static GenericReportReader initialize(Origin findingType)
null if the initialization fails.
CHECKME: Should return a null object?
findingType - the type to load.
public void parse(File f)
throws JAXBException
parse in interface ReportReaderf - input XML report or directory.
JAXBException - if an JAXB exception occures.
public void merge(Map<ResourceInfo,List<Item>> items)
throws JAXBException
merge in interface ReportReaderitems - the items that should be merged with the report's
input items.
JAXBException - if an JAXB exception occurs.
public Item detectFindingTypeForMessage(String message)
throws JAXBException
message - the message to read.
JAXBException - if item creation fails.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||