public class JSONReport extends Report
configurations, messageSummary, parameters, writer| Constructor and Description |
|---|
JSONReport() |
| Modifier and Type | Method and Description |
|---|---|
void |
printFooter()
Prints out the footer or the report and calls the customized footer
section.
|
protected void |
printFooter(PrintWriter writer)
Allows customization of the footer section of the report
|
void |
printHeader()
This method will display the default header for the Vtool command line
library reports.
|
protected void |
printHeader(PrintWriter writer,
String title)
Allows a Report to customize the header portion of the Report if necessary.
|
protected void |
printRecordMessages(PrintWriter writer,
Status status,
URI sourceUri,
List<ValidationProblem> problems)
Allows a report to customize how it handles reporting on a particular
label.
|
protected void |
printRecordSkip(PrintWriter writer,
URI sourceUri,
ValidationProblem problem) |
void |
setOutput(File file)
Handles writing a Report to a
File. |
void |
setOutput(OutputStream os)
Handle writing a Report to an
OutputStream. |
void |
setOutput(Writer writer)
Handles writing a Report to the writer interface.
|
addConfiguration, addParameter, enableDeprecatedFlagWarning, getLevel, getNumFailed, getNumPassed, getNumSkipped, getTotalErrors, getTotalInfos, getTotalWarnings, getType, hasErrors, hasWarnings, printHeader, record, record, recordSkip, setLevel, sortMessageSummarypublic void setOutput(Writer writer)
StringWriter.public void setOutput(OutputStream os)
OutputStream. This is useful
to get the report to print to something such as System.outpublic void setOutput(File file) throws IOException
File.setOutput in class Reportfile - which the report will output toIOException - if there is an issue in writing the report to the filepublic void printHeader()
ReportprintHeader in class Reportprotected void printHeader(PrintWriter writer, String title)
ReportprintHeader in class Reportwriter - passed down to write header contents toprotected void printRecordMessages(PrintWriter writer, Status status, URI sourceUri, List<ValidationProblem> problems)
ReportprintRecordMessages in class Reportwriter - passed on to write customized messages tosourceUri - reference to the file that is being reported onproblems - which to report on for this sourceprotected void printRecordSkip(PrintWriter writer, URI sourceUri, ValidationProblem problem)
printRecordSkip in class Reportprotected void printFooter(PrintWriter writer)
ReportprintFooter in class Reportwriter - passed on to writer customized footer contentspublic void printFooter()
ReportprintFooter in class ReportCopyright © 2020. All rights reserved.