gov.nasa.pds.validate.report
Class JSONReport

java.lang.Object
  extended by gov.nasa.pds.validate.report.Report
      extended by gov.nasa.pds.validate.report.JSONReport

public class JSONReport
extends Report

This class represents a full report in JSON format.

Author:
mcayanan

Field Summary
 
Fields inherited from class gov.nasa.pds.validate.report.Report
configurations, parameters, writer
 
Constructor Summary
JSONReport()
           
 
Method Summary
 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)
          Allows a Report to customize the header portion of the Report if necessary.
protected  void printRecordMessages(PrintWriter writer, Status status, URI sourceUri, List<gov.nasa.pds.tools.label.LabelException> problems)
          Allows a report to customize how it handles reporting on a particular label.
protected  void printRecordSkip(PrintWriter writer, URI sourceUri, Exception exception)
           
 
Methods inherited from class gov.nasa.pds.validate.report.Report
addConfiguration, addParameter, getLevel, getNumFailed, getNumPassed, getNumSkipped, getTotalErrors, getTotalInfos, getTotalWarnings, hasErrors, hasWarnings, record, record, recordSkip, setLevel, setOutput, setOutput, setOutput
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSONReport

public JSONReport()
Method Detail

printHeader

public void printHeader()
Description copied from class: Report
This method will display the default header for the Vtool command line library reports. This is the standard header across all reports.

Overrides:
printHeader in class Report

printHeader

protected void printHeader(PrintWriter writer)
Description copied from class: Report
Allows a Report to customize the header portion of the Report if necessary.

Specified by:
printHeader in class Report
Parameters:
writer - passed down to write header contents to

printRecordMessages

protected void printRecordMessages(PrintWriter writer,
                                   Status status,
                                   URI sourceUri,
                                   List<gov.nasa.pds.tools.label.LabelException> problems)
Description copied from class: Report
Allows a report to customize how it handles reporting on a particular label.

Specified by:
printRecordMessages in class Report
Parameters:
writer - passed on to write customized messages to
sourceUri - reference to the file that is being reported on
problems - which to report on for this source

printRecordSkip

protected void printRecordSkip(PrintWriter writer,
                               URI sourceUri,
                               Exception exception)
Overrides:
printRecordSkip in class Report

printFooter

protected void printFooter(PrintWriter writer)
Description copied from class: Report
Allows customization of the footer section of the report

Specified by:
printFooter in class Report
Parameters:
writer - passed on to writer customized footer contents

printFooter

public void printFooter()
Description copied from class: Report
Prints out the footer or the report and calls the customized footer section.

Overrides:
printFooter in class Report


Copyright © 2010–2014 Planetary Data System. All rights reserved.