Module edu.hm.hafner.analysis.model
Class JcReportParser
java.lang.Object
edu.hm.hafner.analysis.IssueParser
edu.hm.hafner.analysis.parser.jcreport.JcReportParser
- All Implemented Interfaces:
Serializable
JcReportParser-Class. This class parses from the jcReport.xml and creates warnings from its content.
- Author:
- Johann Vierthaler, johann.vierthaler@web.de
- See Also:
-
Field Summary
Fields inherited from class edu.hm.hafner.analysis.IssueParser
ADDITIONAL_PROPERTIES, CATEGORY, COLUMN_END, COLUMN_START, DESCRIPTION, FILE_NAME, FINGERPRINT, ID, LINE_END, LINE_RANGE_END, LINE_RANGE_START, LINE_RANGES, LINE_START, MESSAGE, MODULE_NAME, ORIGIN, PACKAGE_NAME, SEVERITY, TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateReport(ReaderFactory readerFactory) Creates a Report-Object out of the content within the JcReport.xml.parse(ReaderFactory reader) Parses the specified file for issues.Methods inherited from class edu.hm.hafner.analysis.IssueParser
accepts, equalsIgnoreCase, isXmlFile, parseFile
-
Constructor Details
-
JcReportParser
public JcReportParser()
-
-
Method Details
-
parse
Description copied from class:IssueParserParses the specified file for issues.- Specified by:
parsein classIssueParser- Parameters:
reader- provides a reader to the reports- Returns:
- the issues
-
createReport
Creates a Report-Object out of the content within the JcReport.xml.- Parameters:
readerFactory- the Reader-object that is the source to build the Report-Object.- Returns:
- the finished Report-Object that creates the Warnings.
- Throws:
ParsingException- due to digester.parse(new InputSource(source))
-