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(java.io.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(java.io.PrintWriter writer,
java.lang.String title)
Allows a Report to customize the header portion of the Report if necessary.
|
protected void |
printRecordMessages(java.io.PrintWriter writer,
Status status,
java.net.URI sourceUri,
java.util.List<gov.nasa.pds.tools.validate.ValidationProblem> problems)
Allows a report to customize how it handles reporting on a particular
label.
|
protected void |
printRecordSkip(java.io.PrintWriter writer,
java.net.URI sourceUri,
gov.nasa.pds.tools.validate.ValidationProblem problem) |
void |
setOutput(java.io.File file)
Handles writing a Report to a
File . |
void |
setOutput(java.io.OutputStream os)
Handle writing a Report to an
OutputStream . |
void |
setOutput(java.io.Writer writer)
Handles writing a Report to the writer interface.
|
addConfiguration, addParameter, getLevel, getNumFailed, getNumPassed, getNumSkipped, getTotalErrors, getTotalInfos, getTotalWarnings, getType, hasErrors, hasWarnings, printHeader, record, record, recordSkip, setLevel, sortMessageSummary
public void setOutput(java.io.Writer writer)
StringWriter
.public void setOutput(java.io.OutputStream os)
OutputStream
. This is useful
to get the report to print to something such as System.outpublic void setOutput(java.io.File file) throws java.io.IOException
File
.public void printHeader()
Report
printHeader
in class Report
protected void printHeader(java.io.PrintWriter writer, java.lang.String title)
Report
printHeader
in class Report
writer
- passed down to write header contents toprotected void printRecordMessages(java.io.PrintWriter writer, Status status, java.net.URI sourceUri, java.util.List<gov.nasa.pds.tools.validate.ValidationProblem> problems)
Report
printRecordMessages
in class Report
writer
- 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(java.io.PrintWriter writer, java.net.URI sourceUri, gov.nasa.pds.tools.validate.ValidationProblem problem)
printRecordSkip
in class Report
protected void printFooter(java.io.PrintWriter writer)
Report
printFooter
in class Report
writer
- passed on to writer customized footer contentspublic void printFooter()
Report
printFooter
in class Report
Copyright © 2010-2018 Planetary Data System. All Rights Reserved.