com.github.fge.jsonschema.core.report
Class ListProcessingReport

java.lang.Object
  extended by com.github.fge.jsonschema.core.report.AbstractProcessingReport
      extended by com.github.fge.jsonschema.core.report.ListProcessingReport
All Implemented Interfaces:
ProcessingReport, AsJson, Iterable<ProcessingMessage>

public final class ListProcessingReport
extends AbstractProcessingReport
implements AsJson

List-based implementation of a ProcessingReport


Constructor Summary
ListProcessingReport()
           
ListProcessingReport(LogLevel logLevel)
           
ListProcessingReport(LogLevel logLevel, LogLevel exceptionThreshold)
           
ListProcessingReport(ProcessingReport other)
           
 
Method Summary
 JsonNode asJson()
          Return a JSON representation of this object
 Iterator<ProcessingMessage> iterator()
           
 void log(LogLevel level, ProcessingMessage message)
          The only method to be implemented when extending this class
 
Methods inherited from class com.github.fge.jsonschema.core.report.AbstractProcessingReport
debug, dispatch, error, fatal, getExceptionThreshold, getLogLevel, info, isSuccess, mergeWith, toString, warn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ListProcessingReport

public ListProcessingReport(LogLevel logLevel,
                            LogLevel exceptionThreshold)

ListProcessingReport

public ListProcessingReport(LogLevel logLevel)

ListProcessingReport

public ListProcessingReport()

ListProcessingReport

public ListProcessingReport(ProcessingReport other)
Method Detail

log

public void log(LogLevel level,
                ProcessingMessage message)
Description copied from class: AbstractProcessingReport
The only method to be implemented when extending this class

Note that the message's log level will have been correctly set. The log level is passed as an argument for convenience.

Specified by:
log in class AbstractProcessingReport
Parameters:
level - the level of the message
message - the message itself

asJson

public JsonNode asJson()
Description copied from interface: AsJson
Return a JSON representation of this object

Specified by:
asJson in interface AsJson
Returns:
a JsonNode

iterator

public Iterator<ProcessingMessage> iterator()
Specified by:
iterator in interface Iterable<ProcessingMessage>
Overrides:
iterator in class AbstractProcessingReport