|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jcoderz.phoenix.report.AbstractReportReader
org.jcoderz.phoenix.report.JcoderzReport
public final class JcoderzReport
This class implements writing of jcoderz-report.xml files.
| Field Summary | |
|---|---|
static String |
JCODERZ_JAXB_CONTEXT_PATH
JAXB context path. |
| Method Summary | |
|---|---|
void |
addItems(ReportLevel level,
Map<ResourceInfo,List<Item>> items)
Just add items of a specific level to the report, do not write the file to persistent storage yet. |
void |
addSystemLevelIssue(String message,
Throwable e,
ResourceInfo res)
|
Map |
getItems()
Returns the items of the input report as a Map of filename string and of the type Item (org.jcoderz.phoenix.report.jaxb.Item). |
String |
getProjectHome()
Gets the project's home folder. |
String |
getProjectName()
Gets the project name. |
void |
parse(File f)
Parses the report file/directory. |
void |
setLevel(ReportLevel level)
Sets the report level. |
void |
setProjectHome(String s)
Sets the project's home folder. |
void |
setProjectName(String s)
Sets the project name. |
void |
write(OutputStream out,
Map<ResourceInfo,List<Item>> items)
Writes the report to the specified stream by using JAXB. |
void |
writeReport(OutputStream out)
Write the report to persistent storage. |
| Methods inherited from class org.jcoderz.phoenix.report.AbstractReportReader |
|---|
getMarshaller, getUnmarshaller, handleEvent, merge, normalizeFileName, unmarshall |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String JCODERZ_JAXB_CONTEXT_PATH
| Method Detail |
|---|
public Map getItems()
throws JAXBException
getItems in class AbstractReportReaderJAXBException - if an JAXB exception occures.public void setLevel(ReportLevel level)
level - The level of the report
public void parse(File f)
throws JAXBException
f - input XML report or directory.
JAXBException - if an JAXB exception occures.
public void write(OutputStream out,
Map<ResourceInfo,List<Item>> items)
throws JAXBException
out - where to write the jCoderZ report to.items - the file items. The items are a Map of ResourceInfo and
a List of the type jCoderZ Item (org.jcoderz.phoenix.report.jaxb.Item)
JAXBException - for JAXB errors
public void addItems(ReportLevel level,
Map<ResourceInfo,List<Item>> items)
throws JAXBException
level - The level under which to add the items.items - A map of items.
JAXBException - When the JAXB file representation can not
be created.
public void writeReport(OutputStream out)
throws JAXBException
out - The output stream to write the report to.
JAXBException - In case a marshalling exception occurs.public void setProjectHome(String s)
s - the home folderpublic String getProjectHome()
public void setProjectName(String s)
s - the name of the projectpublic String getProjectName()
public void addSystemLevelIssue(String message,
Throwable e,
ResourceInfo res)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||