com.tngtech.jgiven.report.json
Class JsonModelTraverser

java.lang.Object
  extended by com.tngtech.jgiven.report.json.JsonModelTraverser

public class JsonModelTraverser
extends java.lang.Object


Constructor Summary
JsonModelTraverser()
           
 
Method Summary
 void traverseModels(java.io.File sourceDirectory, ReportModelFileHandler handler)
          Reads all JSON files from sourceDirectory and invokes for each found file the ReportModelFileHandler.handleReportModel(com.tngtech.jgiven.report.model.ReportModelFile) method of the given handler.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsonModelTraverser

public JsonModelTraverser()
Method Detail

traverseModels

public void traverseModels(java.io.File sourceDirectory,
                           ReportModelFileHandler handler)
Reads all JSON files from sourceDirectory and invokes for each found file the ReportModelFileHandler.handleReportModel(com.tngtech.jgiven.report.model.ReportModelFile) method of the given handler.

Parameters:
sourceDirectory - the directory that contains the JSON files
handler - the handler to be invoked for each file