Package com.tngtech.jgiven.report.json
Class JsonModelTraverser
- java.lang.Object
-
- com.tngtech.jgiven.report.json.JsonModelTraverser
-
public class JsonModelTraverser extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description JsonModelTraverser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
traverseModels(java.io.File sourceDirectory, ReportModelFileHandler handler)
Reads all JSON files fromsourceDirectory
and invokes for each found file theReportModelFileHandler.handleReportModel(com.tngtech.jgiven.report.model.ReportModelFile)
method of the givenhandler
.
-
-
-
Method Detail
-
traverseModels
public void traverseModels(java.io.File sourceDirectory, ReportModelFileHandler handler)
Reads all JSON files fromsourceDirectory
and invokes for each found file theReportModelFileHandler.handleReportModel(com.tngtech.jgiven.report.model.ReportModelFile)
method of the givenhandler
.- Parameters:
sourceDirectory
- the directory that contains the JSON fileshandler
- the handler to be invoked for each file
-
-