public class JsonInspectionsReportConverter extends java.lang.Object implements InspectionsReportConverter
InspectionsReportConverter.ConversionException
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
PROBLEM |
protected static java.lang.String |
PROBLEMS |
EP_NAME
Constructor and Description |
---|
JsonInspectionsReportConverter() |
Modifier and Type | Method and Description |
---|---|
void |
convert(java.lang.String rawDataDirectoryPath,
java.lang.String outputPath,
java.util.Map<java.lang.String,Tools> tools,
java.util.List<? extends java.io.File> inspectionsResults) |
protected static void |
convertDescriptionsContents(JsonWriter writer,
Document descriptions,
java.util.function.Predicate<java.lang.String> inspectionFilter) |
protected static void |
convertProblem(JsonWriter writer,
Element problem) |
java.lang.String |
getFormatName() |
boolean |
useTmpDirForRawData() |
protected static final java.lang.String PROBLEM
protected static final java.lang.String PROBLEMS
public java.lang.String getFormatName()
getFormatName
in interface InspectionsReportConverter
public boolean useTmpDirForRawData()
useTmpDirForRawData
in interface InspectionsReportConverter
public void convert(java.lang.String rawDataDirectoryPath, java.lang.String outputPath, java.util.Map<java.lang.String,Tools> tools, java.util.List<? extends java.io.File> inspectionsResults) throws InspectionsReportConverter.ConversionException
convert
in interface InspectionsReportConverter
rawDataDirectoryPath
- Original XML report folderoutputPath
- New report output path provided by user. If null use STDOUT.tools
- Inspections datainspectionsResults
- Files with inspection resultsInspectionsReportConverter.ConversionException
protected static void convertProblem(JsonWriter writer, Element problem) throws java.io.IOException
java.io.IOException
protected static void convertDescriptionsContents(JsonWriter writer, Document descriptions, java.util.function.Predicate<java.lang.String> inspectionFilter) throws java.io.IOException
java.io.IOException