Commit c1c27a52 authored by Matthias Betz's avatar Matthias Betz
Browse files

Writing minVertexDistance in reports again

parent edf34af4
Pipeline #1278 failed with stage
in 1 minute and 28 seconds
...@@ -33,9 +33,19 @@ public class ValidationPlan { ...@@ -33,9 +33,19 @@ public class ValidationPlan {
@XmlElement(name = "schematron_file", required = false) @XmlElement(name = "schematron_file", required = false)
private String schematronFile; private String schematronFile;
private double minVertexDistance;
@XmlElement(name = "check", required = true) @XmlElement(name = "check", required = true)
private List<PlanCheck> checks; private List<PlanCheck> checks;
public void setMinVertexDistance(double minVertexDistance) {
this.minVertexDistance = minVertexDistance;
}
public double getMinVertexDistance() {
return minVertexDistance;
}
public void setSchematronFile(String schematronFile) { public void setSchematronFile(String schematronFile) {
this.schematronFile = schematronFile; this.schematronFile = schematronFile;
......
...@@ -111,6 +111,7 @@ public class XmlStreamReporter implements StreamReporter { ...@@ -111,6 +111,7 @@ public class XmlStreamReporter implements StreamReporter {
private ValidationPlan createValidationPlan() { private ValidationPlan createValidationPlan() {
ValidationPlan plan = new ValidationPlan(); ValidationPlan plan = new ValidationPlan();
plan.setMinVertexDistance(config.getMinVertexDistance());
plan.setNumberOfRoundingPlaces(config.getNumberOfRoundingPlaces()); plan.setNumberOfRoundingPlaces(config.getNumberOfRoundingPlaces());
List<PlanCheck> checkConfigs = new ArrayList<>(); List<PlanCheck> checkConfigs = new ArrayList<>();
plan.setChecks(checkConfigs); plan.setChecks(checkConfigs);
......
...@@ -131,6 +131,7 @@ public class PdfStreamReporter implements StreamReporter { ...@@ -131,6 +131,7 @@ public class PdfStreamReporter implements StreamReporter {
private void writeValidationPlan() { private void writeValidationPlan() {
Section vp = report.createSection("Validation Plan", true); Section vp = report.createSection("Validation Plan", true);
vp.addTextElement("numberOfRoundingPlaces = " + config.getNumberOfRoundingPlaces()); vp.addTextElement("numberOfRoundingPlaces = " + config.getNumberOfRoundingPlaces());
vp.addTextElement("minVertexDistance = " + config.getMinVertexDistance());
if (config.getSchematronFilePath() != null && !config.getSchematronFilePath().isEmpty()) { if (config.getSchematronFilePath() != null && !config.getSchematronFilePath().isEmpty()) {
vp.addTextElement("Schematron file: " + config.getSchematronFilePath()); vp.addTextElement("Schematron file: " + config.getSchematronFilePath());
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment